Nginx-Proxy-Manager Stack: add base compose
This commit is contained in:
parent
d8578523e5
commit
96e27caaa5
1 changed files with 36 additions and 0 deletions
36
Docker/Docker-Compose/Nginx-Proxy-Manager/docker-compose.yml
Normal file
36
Docker/Docker-Compose/Nginx-Proxy-Manager/docker-compose.yml
Normal file
|
@ -0,0 +1,36 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue