infrastructure/ansible/roles/pages/files/docker-compose.yml
Jake Howard f62a1e8374
Replace minio with webdav
Much simpler and easier, and lower resources
2021-05-04 11:25:52 +01:00

31 lines
820 B
YAML

version: "2.3"
services:
webdav:
image: theorangeone/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: theorangeone/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