You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.0 KiB

  1. version: "3.3"
  2. services:
  3. traefik:
  4. container_name: traefik
  5. image: "traefik:latest"
  6. command:
  7. - --entrypoints.web.address=:80
  8. - --entrypoints.websecure.address=:443
  9. - --providers.docker
  10. - --log.level=ERROR
  11. - --certificatesresolvers.leresolver.acme.httpchallenge=true
  12. - --certificatesresolvers.leresolver.acme.email=noc@altinea.fr
  13. - --certificatesresolvers.leresolver.acme.storage=/etc/traefik/acme/acme.json
  14. - --certificatesresolvers.leresolver.acme.httpchallenge.entrypoint=web
  15. - --api.insecure=true
  16. - --providers.docker.exposedByDefault=false
  17. ports:
  18. - "80:80"
  19. - "443:443"
  20. - "8090:8080"
  21. volumes:
  22. - "/var/run/docker.sock:/var/run/docker.sock:ro"
  23. - "acme-json:/etc/traefik/acme"
  24. labels:
  25. - "traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`)"
  26. - "traefik.http.routers.http-catchall.entrypoints=web"
  27. networks:
  28. traefik:
  29. volumes:
  30. acme-json:
  31. driver: local
  32. networks:
  33. traefik:
  34. name: traefik