-
Notifications
You must be signed in to change notification settings - Fork 18
/
swarm.yml
45 lines (42 loc) · 1 KB
/
swarm.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
35
36
37
38
39
40
41
42
43
44
45
### NGINX-PROXY
### Works in Swarm Mode
###
### Author: Sebastian Plocek
### https://github.com/sebastian13/docker-compose-nginx-proxy/tree/docker-swarm
version: '3.9'
services:
nginx:
image: nginx
ports:
- target: 443
published: 443
mode: host
- target: 80
published: 80
mode: host
volumes:
- /docker/00-nginx-proxy/www:/var/www:ro
- /docker/00-nginx-proxy/conf.d:/etc/nginx/conf.d:ro
- /docker/00-nginx-proxy/ssl:/etc/nginx/ssl:ro
- /docker/00-nginx-proxy/snippets:/etc/nginx/snippets:ro
- /docker/00-nginx-proxy/protect:/etc/nginx/protect:ro
networks:
- attachable
deploy:
mode: global
update_config:
parallelism: 1
delay: 30s
restart_policy:
condition: any
delay: 30s
max_attempts: 120
window: 30s
endpoint_mode: dnsrr
networks:
attachable:
name: www-network
driver: overlay
attachable: true
driver_opts:
encrypted: "true"