docker/apaches/docker-compose.yml
thopic af089cd6a7
[PHP] Bump to 7.4.33 + install intl php ext
PHP extension required to use new function
(see d0ee343b45)
2023-08-09 12:34:53 +02:00

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