awesome-compose/traefik-golang/compose.yaml
Tom Moulard ebd478bc39
fix: update traefik minor version to v2.6 (#243)
Signed-off-by: Tom Moulard <tom.moulard@traefik.io>
2022-05-16 21:23:58 +02:00

19 lines
533 B
YAML

services:
frontend:
image: traefik:2.6
command: --providers.docker --entrypoints.web.address=:80 --providers.docker.exposedbydefault=false
ports:
# The HTTP port
- "80:80"
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- backend
backend:
build: backend
labels:
- "traefik.enable=true"
- "traefik.http.routers.go.rule=Path(`/`)"
- "traefik.http.services.go.loadbalancer.server.port=80"