infrastructure/ansible/roles/pages/files/docker-compose.yml

31 lines
838 B
YAML

version: "2.3"
services:
webdav:
image: ghcr.io/realorangeone/webdav:latest
restart: unless-stopped
volumes:
- ./sites:/srv
- ./htpasswd.txt:/etc/nginx/.htpasswd:ro
environment:
- PUID={{ docker_user.id }}
labels:
- traefik.enable=true
- traefik.http.routers.pages.rule=Host(`pages.theorangeone.net`)
- traefik.http.routers.pages.tls.certresolver=le
traefik-pages:
image: ghcr.io/realorangeone/traefik-pages:latest
volumes:
- ./sites:/sites:ro
restart: unless-stopped
user: "{{ docker_user.id }}"
ports:
- 127.0.0.1:5000:5000
environment:
- SITES_ROOT=/sites
- TRAEFIK_SERVICE=traefik-pages-pages@docker
- AUTH_PASSWORD={{ traefik_pages_password }}
- TRAEFIK_CERT_RESOLVER=le
labels:
- traefik.enable=true