forked from uxbh/ztdns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
94 lines (79 loc) · 1.69 KB
/
docker-compose.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
---
version: "3.7"
x-influxlog: &syslog
logging:
driver: syslog
options:
#syslog-address: "udp://{{.Node.Hostname}}:6154"
#syslog-address: "udp://{{.Swarm.NodeAddr}}:6154"
syslog-address: "udp://127.0.0.1:6154"
syslog-format: rfc5424micro
tag: "{{.ImageName}}/{{.Name}}/{{.ID}}"
x-replicas: &replicated
replicas: 1
x-global: &global
mode: global
x-worker: &worker
placement:
constraints: [node.role == worker]
x-manager: &manager
placement:
constraints: [node.role == manager]
x-restart: &on-failure
restart_policy:
condition: on-failure
max_attempts: 3
delay: 5s
rollback_config:
parallelism: 2
delay: 10s
monitor: 10s
order: start-first
failure_action: continue
update_config:
parallelism: 2
delay: 10s
monitor: 10s
order: start-first
failure_action: rollback
x-stop-grace: &stopperiod
stop_grace_period: 30s
x-orbiter-disable: &orbiter-off
orbiter: "false"
traefik.enabled: "false"
x-orbiter-enable: &orbiter-on
orbiter: "true"
orbiter.up: "3"
orbiter.down: "1"
x-default-healthcheck: &heathcheck-pass
test: ["CMD", "exit 0"]
interval: 25s
timeout: 5s
retries: 3
configs:
ztdns.toml:
source: ./ztdns.toml
name: ztdns.toml-${RELEASE_NAME}
networks:
default:
name: public
external: true
services:
ztdns:
<<: *stopperiod
<<: *syslog
deploy:
<<: *global
<<: *manager
<<: *on-failure
<<: *orbiter-off
image: "dallasmakerspace/ztdns:latest"
ports:
- "0.0.0.0:53:53/udp"
networks:
public:
aliases: dns
configs:
- ztdns.toml:/app/.ztdns.toml
...
# vim: set sts=2 sw=2 ts=2 et ai: