homeserver/docker-compose/wiki/docker-compose.yml.j2
Michael Grote b4860abb6a
All checks were successful
ansible-lint / gitleaks (push) Successful in 4s
ansible-lint / Ansible Lint (push) Successful in 36s
traefik: combine all allowlist into fileprovider (#235)
Reviewed-on: #235
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2024-11-10 18:07:12 +01:00

34 lines
1.1 KiB
Django/Jinja

services:
wiki-webserver:
container_name: wiki-webserver
image: "registry.mgrote.net/httpd:latest"
restart: unless-stopped
pull_policy: missing
networks:
- traefik
ports:
- 8087:80
volumes:
- /docker/wiki/site/site:/usr/local/apache2/htdocs/
# /docker/wiki/site/site ist ein lokales Verzeichnis auf docker10
# dieser Verzeichnis wird direkt in der Wiki CI gemountet
# und die Daten werden dort reingeschrieben
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost/"]
interval: 30s
timeout: 10s
retries: 3
labels:
traefik.http.routers.wiki.rule: Host(`wiki.mgrote.net`)
traefik.enable: true
traefik.http.routers.wiki.tls: true
traefik.http.routers.wiki.tls.certresolver: resolver_letsencrypt
traefik.http.routers.wiki.entrypoints: entry_https
traefik.http.services.wiki.loadbalancer.server.port: 80
traefik.http.routers.wiki.middlewares: authelia@docker
######## Networks ########
networks:
traefik:
external: true