2023-11-16 20:09:14 +01:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
wiki-webserver:
|
|
|
|
container_name: wiki-webserver
|
2024-02-06 20:30:57 +01:00
|
|
|
image: "registry.mgrote.net/httpd:master@sha256:5030d128b9470ef172ad528b61bea9d9de7320f32770b826199c6d64ebaf3478"
|
2023-11-16 20:09:14 +01:00
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- traefik
|
|
|
|
ports:
|
|
|
|
- 8087:80
|
|
|
|
volumes:
|
|
|
|
- /docker/wiki/site:/usr/local/apache2/htdocs/
|
|
|
|
# /docker/wiki/site ist ein lokales Verzeichnis auf docker10
|
|
|
|
# dieser Verzeichnis wird direkt in der wiki ci gemountet
|
|
|
|
# und die daten werden dort reingeschrieben
|
2024-02-02 12:58:48 +01:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost/"]
|
|
|
|
interval: 30s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 3
|
2023-11-16 20:09:14 +01:00
|
|
|
labels:
|
2023-11-21 12:03:05 +01:00
|
|
|
traefik.http.routers.wiki.rule: Host(`wiki.mgrote.net`)
|
2023-11-16 20:09:14 +01:00
|
|
|
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: nforwardauth
|
|
|
|
|
|
|
|
######## Networks ########
|
|
|
|
networks:
|
|
|
|
traefik:
|
|
|
|
external: true
|