mirror of
https://github.com/Haxxnet/Compose-Examples
synced 2024-11-30 15:31:12 +00:00
8ce7052147
add PUID and PGID envs
30 lines
821 B
YAML
30 lines
821 B
YAML
version: "3"
|
|
|
|
services:
|
|
npm:
|
|
container_name: npm
|
|
environment:
|
|
- TZ=Europe/Berlin
|
|
- PUID=1000 # see https://nginxproxymanager.com/advanced-config/
|
|
- PGID=1000 # see https://nginxproxymanager.com/advanced-config/
|
|
hostname: npm
|
|
#networks:
|
|
# - npm_proxy
|
|
image: jc21/nginx-proxy-manager:latest
|
|
ports:
|
|
- 80:80/tcp # HTTP
|
|
- 443:443/tcp # HTTPS
|
|
- 81:81/tcp # MGMT UI, do not expose publicly
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "/bin/check-health"]
|
|
interval: 30s
|
|
timeout: 3s
|
|
volumes:
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nginx-proxy-manager/data:/data
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nginx-proxy-manager/letsencrypt:/etc/letsencrypt
|
|
|
|
#networks:
|
|
# npm_proxy:
|
|
# external: true
|