mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-12-06 12:28:50 +00:00
nginx-proxy-manager: env-configurable ports/restart, section order; network exception
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -29,6 +29,8 @@ These apply to the compose file (`sample.env`). The `docker run` command hardcod
|
||||
VOL_PATH – base path for data and letsencrypt volumes (default /data)
|
||||
LOG_PATH – where NPM logs are written (default /var/log/containers/nginx-proxy-manager)
|
||||
PROXY_IMAGE – image and tag to run
|
||||
PROXY_RESTART – restart policy (default unless-stopped)
|
||||
PROXY_HTTP_PORT / PROXY_HTTPS_PORT / PROXY_ADMIN_PORT – host ports (default 80 / 443 / 81)
|
||||
|
||||
## Volume Notes
|
||||
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
services:
|
||||
proxy:
|
||||
image: ${PROXY_IMAGE:-jc21/nginx-proxy-manager:latest}
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
X_FRAME_OPTIONS: "sameorigin"
|
||||
DB_SQLITE_FILE: "/data/database.sqlite"
|
||||
ports:
|
||||
- "80:80"
|
||||
- "81:81"
|
||||
- "443:443"
|
||||
restart: ${PROXY_RESTART:-unless-stopped}
|
||||
volumes:
|
||||
- "${VOL_PATH:-/data}/nginx-proxy-manager/data:/data"
|
||||
- "${VOL_PATH:-/data}/nginx-proxy-manager/letsencrypt:/etc/letsencrypt"
|
||||
- "${LOG_PATH:-/var/log/containers/nginx-proxy-manager}:/data/logs"
|
||||
environment:
|
||||
X_FRAME_OPTIONS: "sameorigin"
|
||||
DB_SQLITE_FILE: "/data/database.sqlite"
|
||||
ports:
|
||||
- "${PROXY_HTTP_PORT:-80}:80"
|
||||
- "${PROXY_ADMIN_PORT:-81}:81"
|
||||
- "${PROXY_HTTPS_PORT:-443}:443"
|
||||
networks:
|
||||
- proxy
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
name: proxy
|
||||
driver: bridge
|
||||
driver: bridge
|
||||
|
||||
@@ -2,3 +2,7 @@
|
||||
VOL_PATH=/data
|
||||
LOG_PATH=/var/log/containers/nginx-proxy-manager
|
||||
PROXY_IMAGE=jc21/nginx-proxy-manager:2.15.1
|
||||
PROXY_RESTART=unless-stopped
|
||||
PROXY_HTTP_PORT=80
|
||||
PROXY_ADMIN_PORT=81
|
||||
PROXY_HTTPS_PORT=443
|
||||
|
||||
Reference in New Issue
Block a user