Advertisement
Plaidstallion

Traefik compose

Jun 11th, 2020
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. traefik:
  2. image: traefik:chevrotin
  3. container_name: traefik
  4. restart: always
  5. security_opt:
  6. - no-new-privileges:true
  7. networks:
  8. - proxy
  9. ports:
  10. - 80:80
  11. - 443:443
  12. - 8083:8080
  13. volumes:
  14. - /etc/localtime:/etc/localtime:ro
  15. - /var/run/docker.sock:/var/run/docker.sock:ro
  16. - $USERDIR/docker/traefik/data/traefik.yml:/traefik.yml:ro
  17. - $USERDIR/docker/traefik/configurations:/configurations:ro
  18. - $USERDIR/docker/traefik/data/acme.json:/acme.json
  19. - $USERDIR/docker/traefik/log/access.log:/log/access.log
  20. - $USERDIR/docker/traefik/log/traefik.log:/log/traefik.log
  21. environment:
  22. - CF_API_EMAIL=$CLOUDFLARE_EMAIL
  23. - CF_API_KEY=$CLOUDFLARE_API_KEY
  24. labels:
  25. - "traefik.http.routers.traefik-secure.service=api@internal"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement