version: "3.8" services: apache: build: . image: my_apache:7.4.32 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