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.1 KiB

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