This documentation needs an update (3.11.23)
Traefik web proxy for the different docker web services of Queerreferat Aachen
<ref_mail>
with our mail addressbash_rc
and addexport DOCKER_PATH=$XDG_RUNTIME_DIR/docker.sock
docker compose up -
for any web service that is to be added to the infrastructure, create a docker-compose.yml file and add the proxy network.
networks:
proxy:
external: true
name: shared-proxy
Besides possibly needed other services, create ONE (proxied server) service that connects to the proxy network and specify the virtual host domain as an environment variable. Also specify host and email for Let's Encrypt if you want TLS encryption.
services:
server:
labels:
- "traefik.enable=true"
- "traefik.http.routers.<uniquearbitraryroutername>.rule=Host(`<Hostname>`)" #` instead of ' quotation mark!
networks:
- proxy
- default