From b18e29b389792267269c77db711b54d38e6b9d59 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Mon, 18 Sep 2023 15:56:31 +0200 Subject: initial commit --- Applications/Traefik/.env.example | 2 ++ Applications/Traefik/docker-compose.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 Applications/Traefik/.env.example create mode 100644 Applications/Traefik/docker-compose.yml (limited to 'Applications/Traefik') diff --git a/Applications/Traefik/.env.example b/Applications/Traefik/.env.example new file mode 100644 index 0000000..9c0f2a6 --- /dev/null +++ b/Applications/Traefik/.env.example @@ -0,0 +1,2 @@ +DOMAIN=traefik.archion.sls19.lan +NETWORK=traefik-public diff --git a/Applications/Traefik/docker-compose.yml b/Applications/Traefik/docker-compose.yml new file mode 100644 index 0000000..b432691 --- /dev/null +++ b/Applications/Traefik/docker-compose.yml @@ -0,0 +1,28 @@ +version: "3" + +services: + traefik: + image: "traefik" + container_name: "traefik" + restart: "always" + command: + - "--api.insecure=true" + - "--entrypoints.web.address=:80" + - "--providers.docker=true" + - "--providers.docker.exposedbydefault=false" + ports: + - "80:80" + labels: + - "traefik.enable=true" + # Dashboard + - "traefik.http.services.loadbalancer.server.port=8080" + - "traefik.http.routers.traefik.rule=Host(`${DOMAIN}`)" + - "traefik.http.routers.traefik.entrypoints=web" + volumes: + - "/var/run/docker.sock:/var/run/docker.sock" + networks: + - "traefik" + +networks: + traefik: + name: "${NETWORK}" -- cgit v1.2.3