traefik/docker-compose.yml

29 lines
747 B
YAML
Raw Normal View History

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
- /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:41:25 +00:00
- "traefik.http.routers.whoami.rule=Host(`whoami.docker.local`)"
2024-05-17 21:47:22 +00:00
- "traefik.http.routers.nginxtest.entrypoints=web"
2024-05-17 21:40:11 +00:00
networks:
web:
external: true