From eeb46f0275ac2d6e293581d21deb01de27993451 Mon Sep 17 00:00:00 2001 From: thopic Date: Mon, 10 May 2021 15:57:31 +0200 Subject: [PATCH] Add maintenance service --- apaches/maintenance/.env.example | 1 + apaches/maintenance/docker-compose.yml | 31 ++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 apaches/maintenance/.env.example create mode 100644 apaches/maintenance/docker-compose.yml diff --git a/apaches/maintenance/.env.example b/apaches/maintenance/.env.example new file mode 100644 index 0000000..0efe934 --- /dev/null +++ b/apaches/maintenance/.env.example @@ -0,0 +1 @@ +DATA_PATH= diff --git a/apaches/maintenance/docker-compose.yml b/apaches/maintenance/docker-compose.yml new file mode 100644 index 0000000..ffea689 --- /dev/null +++ b/apaches/maintenance/docker-compose.yml @@ -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