feat: Replaced ports with env variables

This commit is contained in:
2026-06-11 08:42:13 +00:00
parent a3592181ec
commit fcb6ab65cc

View File

@@ -1,18 +1,18 @@
services:
app:
image: jc21/nginx-proxy-manager:latest
container_name: nginx-proxy-manager
restart: unless-stopped
env_file:
- .env
ports:
- 880:80
- 81:81
- 8443:443
volumes:
- ${NGINX_DATA}:/data
- ${NGINX_LETSENCRYPT}:/etc/letsencrypt
healthcheck:
test: ["CMD", "/usr/bin/check-health"]
interval: 10s
services:
app:
image: jc21/nginx-proxy-manager:latest
container_name: nginx-proxy-manager
restart: unless-stopped
env_file:
- .env
ports:
- "${NPM_HTTP_PORT}:80"
- "${NPM_ADMIN_PORT}:81"
- "${NPM_HTTPS_PORT}:443"
volumes:
- ${NGINX_DATA}:/data
- ${NGINX_LETSENCRYPT}:/etc/letsencrypt
healthcheck:
test: ["CMD", "/usr/bin/check-health"]
interval: 10s
timeout: 3s