docker-stack.yml 823 B

12345678910111213141516171819202122232425262728293031323334
  1. version: '3.7'
  2. services:
  3. nginx-relay:
  4. image: nginx:alpine
  5. configs:
  6. - source: nginx
  7. target: /etc/nginx/nginx.conf
  8. networks:
  9. - proxy
  10. deploy:
  11. restart_policy:
  12. condition: any
  13. delay: 1m
  14. labels:
  15. - 'traefik.enable=true'
  16. - 'traefik.docker.network=proxy'
  17. - 'traefik.tcp.routers.signal-proxy.rule=HostSNI("s1gn4l.example.com")'
  18. - 'traefik.tcp.routers.signal-proxy.entrypoints=https'
  19. - 'traefik.tcp.routers.signal-proxy.tls=true'
  20. - 'traefik.tcp.routers.signal-proxy.tls.certresolver=letsencrypt'
  21. - 'traefik.tcp.routers.signal-proxy.service=nginx-relay'
  22. - 'traefik.tcp.services.nginx-relay.loadbalancer.server.port=4433'
  23. configs:
  24. nginx:
  25. file: ./nginx.conf
  26. networks:
  27. proxy:
  28. external: true