2024-05-03 20:37:56 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
2024-05-17 21:26:23 +00:00
|
|
|
reverse-proxy:
|
|
|
|
# The official v3 Traefik docker image
|
|
|
|
image: traefik:v3.0
|
|
|
|
# Enables the web UI and tells Traefik to listen to docker
|
2024-05-17 21:41:25 +00:00
|
|
|
networks:
|
|
|
|
- web
|
|
|
|
- default
|
2024-05-03 20:37:56 +00:00
|
|
|
ports:
|
2024-05-17 21:26:23 +00:00
|
|
|
# The HTTP port
|
2024-05-17 21:31:49 +00:00
|
|
|
- "8188:80"
|
2024-05-17 21:26:23 +00:00
|
|
|
# The Web UI (enabled by --api.insecure=true)
|
|
|
|
- "8088:8080"
|
2024-05-03 20:37:56 +00:00
|
|
|
volumes:
|
2024-05-17 21:26:23 +00:00
|
|
|
- /volume1/docker/traefik/conf/traefik.yml:/etc/traefik/traefik.yml
|
2024-05-18 21:35:51 +00:00
|
|
|
- /volume1/docker/traefik/conf/dsm.yml:/etc/traefik/dynamic_conf/dsm.yml
|
2024-05-17 21:26:23 +00:00
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
2024-05-04 16:36:40 +00:00
|
|
|
|
2024-05-03 21:16:58 +00:00
|
|
|
whoami:
|
|
|
|
# A container that exposes an API to show its IP address
|
|
|
|
image: traefik/whoami
|
|
|
|
labels:
|
2024-05-17 21:53:47 +00:00
|
|
|
- "traefik.http.routers.whoami.rule=Path(`/whoami`)"
|
2024-05-17 21:40:11 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
web:
|
|
|
|
external: true
|