add configuration to use traefik-golang sample with Docker Dev Environments feature (#254)
* add configuration to use traefik-golang sample with Docker Dev Environments feature * use apt-get instead of apt and --no-install-recommends option Co-authored-by: Milas Bowman <milasb@gmail.com> Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>pull/270/head
parent
70b1d1f65f
commit
6ac068dfc6
@ -0,0 +1,22 @@ |
|||||||
|
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: |
||||||
|
context: backend |
||||||
|
target: dev-envs |
||||||
|
volumes: |
||||||
|
- /var/run/docker.sock:/var/run/docker.sock |
||||||
|
labels: |
||||||
|
- "traefik.enable=true" |
||||||
|
- "traefik.http.routers.go.rule=Path(`/`)" |
||||||
|
- "traefik.http.services.go.loadbalancer.server.port=80" |
Loading…
Reference in new issue