Update docker-compose.yml

add PUID and PGID envs
This commit is contained in:
LRVT 2024-01-15 14:40:00 +01:00 committed by GitHub
parent 45af4ee552
commit 8ce7052147
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,15 +5,16 @@ services:
container_name: npm container_name: npm
environment: environment:
- TZ=Europe/Berlin - TZ=Europe/Berlin
- PUID=1000 # see https://nginxproxymanager.com/advanced-config/
- PGID=1000 # see https://nginxproxymanager.com/advanced-config/
hostname: npm hostname: npm
user: 0:1000
#networks: #networks:
# - npm_proxy # - npm_proxy
image: jc21/nginx-proxy-manager:latest image: jc21/nginx-proxy-manager:latest
ports: ports:
- 443:443/tcp # HTTPS
- 81:81/tcp # MGMT UI
- 80:80/tcp # HTTP - 80:80/tcp # HTTP
- 443:443/tcp # HTTPS
- 81:81/tcp # MGMT UI, do not expose publicly
restart: unless-stopped restart: unless-stopped
healthcheck: healthcheck:
test: ["CMD", "/bin/check-health"] test: ["CMD", "/bin/check-health"]