config network

This commit is contained in:
mathieu 2024-05-17 23:40:11 +02:00
parent d8221806bc
commit 0394aef25f

View File

@ -15,10 +15,16 @@ services:
- /volume1/docker/traefik/conf/traefik.yml:/etc/traefik/traefik.yml
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock
networks:
- web
- default
whoami:
# A container that exposes an API to show its IP address
image: traefik/whoami
labels:
- "traefik.http.routers.whoami.rule=path(`/whoami`)"
networks:
web:
external: true