2022-06-18 16:19:04 +02:00
|
|
|
---
|
|
|
|
version: "3.4"
|
|
|
|
|
|
|
|
services:
|
|
|
|
redirect:
|
|
|
|
image: caddy:2
|
|
|
|
volumes:
|
|
|
|
- ./Caddyfile:/etc/caddy/Caddyfile:ro,z
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.caddyredir.rule={{ redirect.hosts | map(attribute='from') | map('regex_replace', '^(.*)$', 'Host(`\\1`)') | join(' || ') }}"
|
|
|
|
- "traefik.http.routers.caddyredir.entryPoints=websecure"
|
|
|
|
- "traefik.http.services.caddyredir.loadbalancer.server.port=80"
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- gateway
|
|
|
|
|
|
|
|
networks:
|
|
|
|
gateway:
|
|
|
|
external: true
|
2022-08-08 23:55:41 +02:00
|
|
|
...
|