Pos

Nginx Proxy Manager

Fungsi

Nginx Proxy Manager berperanan sebagai reverse proxy kepada webapp dalam server.

image-2.png

Environment

  • Ubuntu 22.04 LTS
  • Docker 20.10.12

Install docker

1
2
sudo apt install docker.io
sudo apt install docker-compose

Bina folder

1
2
mkdir npm
cd npm

Bina docker-compose.yaml file

1
touch docker-compose.yaml

Edit docker-compose.yaml file

1
nano docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
version: '3'

services:

  app:
    image: 'jc21/nginx-proxy-manager:latest'
    restart: unless-stopped
    ports:
      - '80:80' # hostport:containerport
      - '81:81' # hostport:containerport
      - '443:443' # hostport:containerport
    volumes:
      - data:/data
      - letsencrypt:/etc/letsencrypt

volumes:
  data:
  letsencrypt:

Run docker-compose

1
sudo docker-compose up -d

Login ke admin UI

http://localhost:81

Username: [email protected] Password: changeme

Tangkap layar 2022-06-09 053438.png

Pos ini dilesenkan di bawah CC BY 4.0 oleh penulis.