oc-deploy/docker/tools/docker-compose.traefik.yml

27 lines
500 B
YAML
Raw Normal View History

2025-03-27 13:21:52 +01:00
version: '3.4'
services:
traefik:
image: traefik:v2.10.4
container_name: traefik
restart: unless-stopped
networks:
- oc
command:
- "--api.insecure=true"
- "--providers.docker=true"
2025-05-14 16:13:15 +02:00
- "--entrypoints.web.address=:8000"
- "--api.dashboard=true"
2025-03-27 13:21:52 +01:00
ports:
2025-05-14 16:13:15 +02:00
- "8000:8000" # Expose Traefik on port 80
- "8080:8080"
2025-03-27 13:21:52 +01:00
volumes:
- /var/run/docker.sock:/var/run/docker.sock
volumes:
oc-data:
networks:
oc:
external: true