34 lines
1.3 KiB
YAML
34 lines
1.3 KiB
YAML
version: "3.8"
|
|
|
|
services:
|
|
apache:
|
|
build: .
|
|
image: my_apache:7.4.33
|
|
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/
|
|
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"
|
|
- "co.elastic.logs/module=apache"
|
|
- "co.elastic.logs/fileset=access"
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|