-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-stack.yml
61 lines (58 loc) · 1.2 KB
/
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
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
version: "3.5"
x-logging:
&default-logging
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
configs:
dnscrypt-proxy:
name: dnscrypt-proxy-${DNSCRYPT-PROXY_CONFIG_VERSION:-0}
file: ./dnscrypt-proxy.toml
pdnsd:
name: pdnsd-${PDNSD_CONFIG_VERSION:-0}
file: ./pdnsd.conf
networks:
hostnet:
external: true
name: host
services:
greendns:
image: faicker/greendns:latest
depends_on:
- dnscrypt-proxy-2
- pdnsd
networks:
hostnet: {}
deploy:
replicas: 1
restart_policy:
condition: any
logging: *default-logging
env_file: .env
dnscrypt-proxy-2:
image: faicker/dnscrypt-proxy-2:latest
configs:
- source: dnscrypt-proxy
target: /config/dnscrypt-proxy.toml
mode: 0440
networks:
hostnet: {}
deploy:
replicas: 1
restart_policy:
condition: any
logging: *default-logging
pdnsd:
image: vimagick/pdnsd:latest
configs:
- source: pdnsd
target: /etc/pdnsd.conf
mode: 0440
networks:
hostnet: {}
deploy:
replicas: 1
restart_policy:
condition: any
logging: *default-logging