Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- services:
- traefik-proxy:
- container_name: traefik-proxy
- # The official v2 Traefik docker image
- image: traefik:latest # latest for v3 or v2.11
- restart: always
- # Enables the web UI and tells Traefik to listen to docker
- command:
- - --api.insecure=true
- - --providers.docker
- #- --pilot.token=347e24e3-f786-4583-92af-0a1b097d47af
- ports:
- # The HTTP port
- - "80:80"
- # The HTTPS port
- - "443:443"
- # The Web UI (enabled by --api.insecure=true)
- - "8080:8080"
- volumes:
- # So that Traefik can listen to the Docker events
- - /var/run/docker.sock:/var/run/docker.sock
- - ./traefik/traefik.yml:/etc/traefik/traefik.yml # Traefik static config
- - ./traefik/certs:/etc/certs # SSL certificates
- - ./traefik/configs:/etc/traefik/configs # Dynamic Configs
- - /dev/shm:/dev/shm
- networks:
- - internal
- - traefik
Advertisement
Add Comment
Please, Sign In to add comment