QuITAC / proxy

docker web proxy for the different docker services of Queerreferat Aachen
0 stars 0 forks source link

proxy_docker

This documentation needs an update (3.11.23)

Traefik web proxy for the different docker web services of Queerreferat Aachen

setup

  1. replace <ref_mail> with our mail address
  2. edit the bash_rc and add
export DOCKER_PATH=$XDG_RUNTIME_DIR/docker.sock
  1. launch the proxy server using docker compose up -

usage

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