12 lines
493 B

  1. description: "Traefik"
  2. maintainer: "Valentin Lab <valentin.lab@kalysto.org>"
  3. ## XXXvlab: docker uses the 'build' directory or the 'image:' option here.
  4. docker-image: traefik
  5. docker-compose:
  6. restart: unless-stopped
  7. command: --api --docker ## Enables the web UI and tells Træfik to listen to docker
  8. ports:
  9. - "80:80" ## The HTTP port
  10. - "8080:8080" ## The Web UI (enabled by --api)
  11. host-resources:
  12. - /var/run/docker.sock ## So that Traefik can listen to the Docker events