Advertisement
Guest User

docker-compose

a guest
Jun 28th, 2022
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.67 KB | None | 0 0
  1. version: '3'
  2.  
  3. services:
  4.   reverse-proxy:
  5.     restart: unless-stopped
  6.     # The official v2 Traefik docker image
  7.     image: traefik:v2.7
  8.     # Enables the web UI and tells Traefik to listen to docker
  9.     command: --api.insecure=true --providers.docker
  10.     ports:
  11.      # The HTTP port
  12.       - "80:80"
  13.       # The Web UI (enabled by --api.insecure=true)
  14.       - "8080:8080"
  15.     volumes:
  16.      # So that Traefik can listen to the Docker events
  17.       - /var/run/docker.sock:/var/run/docker.sock
  18.       - /opt/traefik/traefik.toml:/traefik.toml
  19.       - /opt/traefik/acme.json:/acme.json
  20.     networks:
  21.      - traefik_default
  22.  
  23. networks:
  24.   traefik_default:
  25.     external: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement