36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
name: nginx-proxy-manager-stack
|
|
|
|
services:
|
|
app:
|
|
image: 'jc21/nginx-proxy-manager:latest'
|
|
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:
|
|
# Postgres parameters:
|
|
DB_POSTGRES_HOST: ${DB_HOST:-db}
|
|
DB_POSTGRES_PORT: ${DB_PORT:-5432}
|
|
DB_POSTGRES_USER: ${DB_USER:-npm}
|
|
DB_POSTGRES_PASSWORD: ${DB_PASSWORD:-npmpass}
|
|
DB_POSTGRES_NAME: ${DB_NAME:-npm}
|
|
# Set to true if IPv6 is not enabled on your host
|
|
DISABLE_IPV6: false
|
|
volumes:
|
|
- ${DATA_PATH:-./Data}:/data
|
|
- ${LE_PATH:-./LetsEncrypt}:/etc/letsencrypt
|
|
depends_on:
|
|
- db
|
|
|
|
db:
|
|
image: postgres:16-alpine
|
|
environment:
|
|
POSTGRES_USER: ${DB_USER:-npm}
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD:-npmpass}
|
|
POSTGRES_DB: ${BDB_NAME:-npm}
|
|
volumes:
|
|
- ${DB_PATH:-./Database}:/var/lib/postgresql/data
|