2020-04-07 19:32:26 +00:00
|
|
|
services:
|
|
|
|
frontend:
|
2022-05-16 19:23:58 +00:00
|
|
|
image: traefik:2.6
|
2020-04-07 19:32:26 +00:00
|
|
|
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"
|