docker/apaches/docker-compose.yml

34 lines
1.3 KiB
YAML
Raw Normal View History

2021-05-09 22:07:17 +02:00
version: "3.8"
services:
apache:
build: .
2022-10-23 19:02:54 +02:00
image: my_apache:7.4.32
2021-05-09 22:07:17 +02:00
container_name: apache
networks:
- proxy
expose:
- "80"
restart: unless-stopped
volumes:
- /usr/lib/locale/:/usr/lib/locale/
- /etc/localtime:/etc/localtime:ro
- ${DATA_PATH}:/var/www/
2021-05-09 22:07:17 +02:00
labels:
- "traefik.enable=true"
- "traefik.http.routers.gnousweb.entrypoints=websecure"
- "traefik.http.routers.gnousweb.rule=Host(`${CN}`, `${SAN1}`)"
# - "traefik.http.routers.gnousweb.rule=Host(`${CN}`, `${SAN1}`, `${TRAVAUXCN}`)"
- "traefik.http.middlewares.gnousweb-force-cn.redirectregex.regex=^https://${SAN1}/(.*)"
- "traefik.http.middlewares.gnousweb-force-cn.redirectregex.replacement=https://${CN}/$${1}"
# - "traefik.http.middlewares.gnous-travaux.redirectregex.regex=^https://${TRAVAUXCN}/"
# - "traefik.http.middlewares.gnous-travaux.redirectregex.replacement=https://${CN}/travaux.php"
- "traefik.http.routers.gnousweb.middlewares=gnousweb-force-cn"
# - "traefik.http.routers.gnousweb.middlewares=gnousweb-force-cn,gnous-travaux"
2021-05-09 22:07:17 +02:00
- "co.elastic.logs/module=apache"
- "co.elastic.logs/fileset=access"
networks:
proxy:
external: true