Add maintenance service

This commit is contained in:
thopic 2021-05-10 15:57:31 +02:00
parent efe6c52950
commit eeb46f0275
Signed by: thopic
GPG Key ID: 292DBBF0B54AD4C5
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1 @@
DATA_PATH=

View File

@ -0,0 +1,31 @@
version: "3.8"
services:
web:
build: ..
image: my_apache:7.4.18
container_name: maintenance
networks:
- proxy
expose:
- "80"
restart: unless-stopped
volumes:
- /usr/lib/locale/:/usr/lib/locale/
- /etc/localtime:/etc/localtime:ro
- ${DATA_PATH}/public-html:/var/www/html/
labels:
- "traefik.enable=true"
- "traefik.http.routers.maintenance-http.rule=HostRegexp(`{catchall:.+}`)"
- "traefik.http.routers.maintenance-http.entrypoints=web"
- "traefik.http.routers.maintenance-http.priority=1"
- "traefik.http.routers.maintenance-https.rule=HostRegexp(`{catchall:.+}`)"
- "traefik.http.routers.maintenance-https.entrypoints=websecure"
- "traefik.http.routers.maintenance-https.priority=1"
- "traefik.http.routers.maintenance-https.tls=true"
- "co.elastic.logs/module=apache"
- "co.elastic.logs/fileset=access"
networks:
proxy:
external: true