jms1989

docker-compose.yml

Sep 6th, 2025
464
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.92 KB | None | 0 0
  1. services:
  2.   traefik-proxy:
  3.     container_name: traefik-proxy
  4.     # The official v2 Traefik docker image
  5.     image: traefik:latest # latest for v3 or v2.11
  6.     restart: always
  7.     # Enables the web UI and tells Traefik to listen to docker
  8.     command:
  9.       - --api.insecure=true
  10.       - --providers.docker
  11.       #- --pilot.token=347e24e3-f786-4583-92af-0a1b097d47af
  12.     ports:
  13.      # The HTTP port
  14.       - "80:80"
  15.       # The HTTPS port
  16.       - "443:443"
  17.       # The Web UI (enabled by --api.insecure=true)
  18.       - "8080:8080"
  19.     volumes:
  20.      # So that Traefik can listen to the Docker events
  21.       - /var/run/docker.sock:/var/run/docker.sock
  22.       - ./traefik/traefik.yml:/etc/traefik/traefik.yml # Traefik static config
  23.       - ./traefik/certs:/etc/certs # SSL certificates
  24.       - ./traefik/configs:/etc/traefik/configs # Dynamic Configs
  25.       - /dev/shm:/dev/shm
  26.     networks:
  27.      - internal
  28.       - traefik
Advertisement
Add Comment
Please, Sign In to add comment