728x90
반응형
필자는 Nginx Proxy Manager 설치 과정을 소개하고자 한다.
Nginx Proxy Manager는 reverse proxy, redirection, 보안 인증, SSL 인증서 관리를 브라우저 화면에서 관리할 수 있도록 도와주는 툴이다.
필자는 ssl 인증서를 관리하기 위한 용도로 사용하기 위해 설치해 보았다.
많이 사용하는 서비스인 만큼 사용 방법도 익히면 많은 도움이 될 거 같으니, 한번 사용해 보길 추천한다.
docker-compose.yml
docker-compose up -d
version: "3"
services:
app:
image: jc21/nginx-proxy-manager:latest
container_name: npm
# restart: always
ports:
- '48080:80'
- '40443:443'
- '48081:81'
environment:
# These are the settings to access your db
DB_MYSQL_HOST: "db"
DB_MYSQL_PORT: 3306
DB_MYSQL_USER: "npm"
DB_MYSQL_PASSWORD: "npm"
DB_MYSQL_NAME: "npm"
# If you would rather use Sqlite uncomment this
# and remove all DB_MYSQL_* lines above
# DB_SQLITE_FILE: "/data/database.sqlite"
# Uncomment this if IPv6 is not enabled on your host
# DISABLE_IPV6: 'true'
volumes:
- ./letsencrypt:/etc/letsencrypt
- ./data:/data
depends_on:
- db
db:
image: jc21/mariadb-aria:latest
container_name: npm_db
# restart: always
environment:
MYSQL_ROOT_PASSWORD: 'npm'
MYSQL_DATABASE: 'npm'
MYSQL_USER: 'npm'
MYSQL_PASSWORD: 'npm'
volumes:
- ./data/mysql:/var/lib/mysql
docker-compose 실행
docker-compose up -d
master@master:~/docker2/docker/docker/nginx$ docker-compose up -d
Creating network "nginx_default" with the default driver
Pulling db (jc21/mariadb-aria:latest)...
latest: Pulling from jc21/mariadb-aria
df20fa9351a1: Pull complete
c4e214cb7f07: Pull complete
568f83ab8cda: Pull complete
edf866f7abc9: Pull complete
a72600294fbb: Pull complete
3e879d1f1b34: Pull complete
41e2c76755f1: Pull complete
Digest: sha256:9dafab05f863cd186101fd8ac8b18684e8dfd7c3cce1376e552b77d0a8b40839
Status: Downloaded newer image for jc21/mariadb-aria:latest
Pulling app (jc21/nginx-proxy-manager:latest)...
latest: Pulling from jc21/nginx-proxy-manager
4500a762c546: Pull complete
2064244d4a45: Pull complete
84215fabca57: Pull complete
b76f93d918a0: Pull complete
df317c467603: Pull complete
83b1b9be61d5: Pull complete
60d6f63fc4c0: Pull complete
a4d97773651a: Pull complete
c06eb9e1dc9a: Pull complete
a8167af86067: Pull complete
cd05bb490889: Pull complete
723aeecfd151: Pull complete
916e1ca435ed: Pull complete
dae2831773a8: Pull complete
e87a4fe7a100: Pull complete
458ba1ceb1d0: Pull complete
368cd5f2b4c1: Pull complete
eac612b2d600: Pull complete
5886c916a6d2: Pull complete
20ee015b172f: Pull complete
a50f24615148: Pull complete
2ba8bdc1cb2e: Pull complete
8738d43676e1: Pull complete
aa813c6ef05a: Pull complete
003e6980c1b6: Pull complete
fb68e75b2b7a: Pull complete
b98d05b8f325: Pull complete
4f4fb700ef54: Pull complete
748b5c7c86e2: Pull complete
04aec91b6cb4: Pull complete
d854886c6c95: Pull complete
a046a4de3325: Pull complete
Digest: sha256:82cb962fd9e6a76345f3d48a40c77da4cf691a46bd9be5a4a12251b43fac6800
Status: Downloaded newer image for jc21/nginx-proxy-manager:latest
Creating npm_db ... done
Creating npm ... done
Nginx proxy manager(NPM) URL 접속
http://[서버 IP]:48081
# 계정
email: admin@example.com
password: changeme
로그인 성공 후 계정 변경 및 비밀번호 초기화
반응형
Nginx Proxy Manager(NPM) 메인 화면
docker-compose 중지
docker-compose down
[Docker] 도커의 모든 것, 도커 추천 이미지!!! (tistory.com)
728x90
반응형
LIST
'Docker' 카테고리의 다른 글
[Docker] homarr 대시보드 서비스 구축하기 (4) | 2023.02.19 |
---|---|
[Docker] grocy 재고 관리(식료품,가정용) 서비스 구축 (2) | 2023.02.18 |
[Docker] docuwiki 구축하기 (2) | 2023.02.14 |
[Docker] mediawiki 구축하기 (2) | 2023.02.13 |
[Docker] wiki.js 구축하여 나만의 wiki를 작성해보자 (2) | 2023.02.11 |