diff options
Diffstat (limited to 'Applications/Traefik')
-rw-r--r-- | Applications/Traefik/.env.example | 2 | ||||
-rw-r--r-- | Applications/Traefik/docker-compose.yml | 28 |
2 files changed, 30 insertions, 0 deletions
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}" |