mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-19 07:18:06 +02:00
Adopt Compose v2 (#240)
* Adopt Compose v2 Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
bc95525543
commit
667bd9facb
79 changed files with 237 additions and 237 deletions
18
traefik-golang/compose.yaml
Normal file
18
traefik-golang/compose.yaml
Normal file
|
@ -0,0 +1,18 @@
|
|||
services:
|
||||
frontend:
|
||||
image: traefik:2.2
|
||||
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"
|
Loading…
Add table
Add a link
Reference in a new issue