2021-05-09 22:07:17 +02:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
services:
|
|
|
|
apache-test:
|
|
|
|
build: ..
|
2023-08-09 12:34:53 +02:00
|
|
|
image: my_apache:7.4.33
|
2021-05-09 22:07:17 +02:00
|
|
|
container_name: apache-test
|
|
|
|
networks:
|
|
|
|
- proxy
|
|
|
|
expose:
|
|
|
|
- "80"
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- /usr/lib/locale/:/usr/lib/locale/
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
2021-11-19 23:06:03 +01:00
|
|
|
- ${DATA_PATH}:/var/www/
|
2021-05-09 22:07:17 +02:00
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
2023-02-06 12:32:05 +01:00
|
|
|
- "traefik.http.routers.gnouswebtest.entrypoints=websecure"
|
2023-02-01 18:43:13 +01:00
|
|
|
- "traefik.http.routers.gnouswebtest.rule=Host(`${CN}`, `${SAN1}`)"
|
|
|
|
- "traefik.http.routers.gnouswebtest.middlewares=gnouswebtest-redirectregex"
|
|
|
|
- "traefik.http.middlewares.gnouswebtest-redirectregex.redirectregex.regex=^https://${SAN1}/(.*)"
|
|
|
|
- "traefik.http.middlewares.gnouswebtest-redirectregex.redirectregex.replacement=https://${CN}/$${1}"
|
2021-05-09 22:07:17 +02:00
|
|
|
|
|
|
|
networks:
|
|
|
|
proxy:
|
|
|
|
external: true
|