-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-stack.yml
34 lines (28 loc) · 823 Bytes
/
docker-stack.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
version: '3.7'
services:
nginx-relay:
image: nginx:alpine
configs:
- source: nginx
target: /etc/nginx/nginx.conf
networks:
- proxy
deploy:
restart_policy:
condition: any
delay: 1m
labels:
- 'traefik.enable=true'
- 'traefik.docker.network=proxy'
- 'traefik.tcp.routers.signal-proxy.rule=HostSNI("s1gn4l.example.com")'
- 'traefik.tcp.routers.signal-proxy.entrypoints=https'
- 'traefik.tcp.routers.signal-proxy.tls=true'
- 'traefik.tcp.routers.signal-proxy.tls.certresolver=letsencrypt'
- 'traefik.tcp.routers.signal-proxy.service=nginx-relay'
- 'traefik.tcp.services.nginx-relay.loadbalancer.server.port=4433'
configs:
nginx:
file: ./nginx.conf
networks:
proxy:
external: true