Files
web-jailgames/docker-compose.portainer.yml
T
JailDesigner cff1746906 Añadir compose para producción con Traefik/Portainer
- docker-compose.portainer.yml: Nginx alpine con labels Traefik,
  volúmenes en /var/volumes/web_jailgames/, red web externa
- README: flujo de despliegue online (rsync + Portainer),
  alternativa Apache VirtualHost

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-30 13:15:15 +02:00

52 lines
1.2 KiB
YAML

services:
jailgames:
container_name: jailgames
hostname: jailgames
image: nginx:alpine
volumes:
- jailgames-html:/usr/share/nginx/html:ro
- jailgames-nginx:/etc/nginx/conf.d:ro
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
networks:
- web
labels:
- traefik.enable=true
- traefik.docker.network=web
- traefik.http.routers.jailgames.rule=Host(`jailgames.sustancia.synology.me`)
- traefik.http.routers.jailgames.tls=true
- traefik.http.routers.jailgames.tls.certresolver=letsencrypt
- traefik.http.services.jailgames.loadbalancer.server.scheme=http
- traefik.http.services.jailgames.loadbalancer.server.port=80
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost/"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
restart: unless-stopped
volumes:
jailgames-html:
driver: local
driver_opts:
o: bind
type: none
device: /var/volumes/web_jailgames/html
jailgames-nginx:
driver: local
driver_opts:
o: bind
type: none
device: /var/volumes/web_jailgames/nginx
networks:
web:
external: true