49 lines
No EOL
1.3 KiB
YAML
49 lines
No EOL
1.3 KiB
YAML
services:
|
|
nginx:
|
|
image: 'jc21/nginx-proxy-manager:2.11.3'
|
|
container_name: nginx-proxy
|
|
restart: unless-stopped
|
|
ports:
|
|
# These ports are in format <host-port>:<container-port>
|
|
- '80:80' # Public HTTP Port
|
|
- '443:443' # Public HTTPS Port
|
|
- '81:81' # Admin Web Port
|
|
# Add any other Stream port you want to expose
|
|
# - '21:21' # FTP
|
|
environment:
|
|
TZ: "America/New_York"
|
|
# Mysql/Maria connection parameters:
|
|
DB_MYSQL_HOST: "db"
|
|
DB_MYSQL_PORT: 3306
|
|
DB_MYSQL_USER: "npm"
|
|
DB_MYSQL_PASSWORD_FILE: "/run/secrets/db_password"
|
|
DB_MYSQL_NAME: "npm"
|
|
volumes:
|
|
- ./data:/data
|
|
- ./letsencrypt:/etc/letsencrypt
|
|
secrets:
|
|
- db_password
|
|
depends_on:
|
|
- db
|
|
|
|
db:
|
|
image: 'jc21/mariadb-aria:10.11.5'
|
|
container_name: nginx-db
|
|
restart: always
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD_FILE: "/run/secrets/db_root_password"
|
|
MYSQL_DATABASE: "npm"
|
|
MYSQL_USER: "npm"
|
|
MYSQL_PASSWORD_FILE: "/run/secrets/db_password"
|
|
MARIADB_AUTO_UPGRADE: '1'
|
|
volumes:
|
|
- ./mysql:/var/lib/mysql
|
|
secrets:
|
|
- db_root_password
|
|
- db_password
|
|
|
|
secrets:
|
|
db_password:
|
|
file: secrets/db_password.txt
|
|
db_root_password:
|
|
file: secrets/db_root_password.txt |