Advertisement
-Dal-

docker-compose.yml

Mar 7th, 2024
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. version: '3'
  2. services:
  3. traefik:
  4. container_name: traefik
  5. image: traefik:latest
  6. ports:
  7. - 80:80
  8. - 443:443
  9. - 8080:8080 # Dashboard port
  10. volumes:
  11. - ./data:/etc/traefik
  12. - /var/run/docker.sock:/var/run/docker.sock
  13. networks:
  14. - elastic
  15. labels:
  16. traefik.http.routers.api.rule: Host(`traefik.domain.tld`) # Define the subdomain for the traefik dashboard.
  17. traefik.http.routers.api.entryPoints: https # Set the Traefik entry point.
  18. traefik.http.routers.api.service: api@internal # Enable Traefik API.
  19. traefik.enable: true # Enable Traefik reverse proxy for the Traefik dashboard.
  20. #environment:
  21. #- /var/run/docker.sock:/var/run/docker.sock
  22. #TRAEFIK_PROVIDERS_FILE_FILENAME: ./data/certificates/certificates.yml
  23. #DOCKER_HOST: dockersocket
  24. restart: unless-stopped
  25.  
  26. networks:
  27. elastic:
  28. external: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement