Files
Docker-Compose/Photography_Containers/pigallery2/compose.yaml
T

35 lines
1.5 KiB
YAML
Raw Normal View History

2025-09-22 03:57:31 +00:00
services:
pigallery2:
image: bpatrik/pigallery2:latest
container_name: pigallery2
environment:
- NODE_ENV=production # set to 'debug' for full debug logging
# - NODE_OPTIONS=--enable-source-maps # enable source map support on the backend for development
volumes:
- "/srv/docker/pigallery2/config:/app/data/config"
- "/srv/docker/pigallery2/db-data:/app/data/db"
- "/mnt/smb_share_pics:/app/data/images:ro" # ':ro' means read-only
- "/srv/docker/pigallery2/tmp:/app/data/tmp"
ports:
- 5007:80
restart: unless-stopped
networks:
- traefik_network
labels:
- flame.type=application # "app" works too
- flame.name=${SERVICE_NAME}
- flame.url=https://${SERVICE_NAME}.${DOMAIN_NAME} #Adjust to your domain or IP
- flame.icon=https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/pigallery2-dark.png
### Enable Traefik
- traefik.enable=true
### For HTTP
#- traefik.http.routers.${SERVICE_NAME}.rule=Host(`${SERVICE_NAME}.${DOMAIN_NAME}`)
#- traefik.http.routers.${SERVICE_NAME}.entrypoints=web
### For HTTPS
- traefik.http.routers.${SERVICE_NAME}-https.tls=true
- traefik.http.routers.${SERVICE_NAME}-https.tls.certresolver=cloudflare
- traefik.http.routers.${SERVICE_NAME}-https.entrypoints=websecure
- traefik.http.routers.${SERVICE_NAME}-https.rule=Host(`${SERVICE_NAME}.${DOMAIN_NAME}`)
networks:
traefik_network:
external: true