-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathdocker-compose.yml
124 lines (114 loc) · 3.55 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
#
# Demo with the PowerDNS Authoritative Nameserver.
#
version: '2.4'
volumes:
lmdb:
driver: local
minio:
driver: local
#snapshots:
# driver: local
services:
minio:
# Default credentials: minioadmin / minioadmin
image: minio/minio
ports:
- "${DEVENV_BIND_IP:-127.0.0.1}:${PORT_PREFIX:-47}30:9000"
- "${DEVENV_BIND_IP:-127.0.0.1}:${PORT_PREFIX:-47}31:9001"
command: server /data --console-address :9001
volumes:
- "minio:/data"
auth1:
image: powerdns/pdns-auth-48
environment:
instance: 1
port: 53
webserver_port: 8081
ports:
- "${DEVENV_BIND_IP:-127.0.0.1}:${PORT_PREFIX:-47}51:53/tcp"
- "${DEVENV_BIND_IP:-127.0.0.1}:${PORT_PREFIX:-47}51:53/udp"
- "${DEVENV_BIND_IP:-127.0.0.1}:${PORT_PREFIX:-47}81:8081"
volumes:
- "lmdb:/lmdb"
- "./docker/pdns/run.sh:/run.sh:ro"
user: root
init: true
entrypoint: /run.sh
auth2:
image: powerdns/pdns-auth-48
environment:
instance: 2
port: 53
webserver_port: 8081
ports:
- "${DEVENV_BIND_IP:-127.0.0.1}:${PORT_PREFIX:-47}52:53/tcp"
- "${DEVENV_BIND_IP:-127.0.0.1}:${PORT_PREFIX:-47}52:53/udp"
- "${DEVENV_BIND_IP:-127.0.0.1}:${PORT_PREFIX:-47}82:8081"
volumes:
- "lmdb:/lmdb"
- "./docker/pdns/run.sh:/run.sh:ro"
user: root
init: true
entrypoint: /run.sh
auth3:
image: powerdns/pdns-auth-48
environment:
instance: 3
port: 53
webserver_port: 8081
ports:
- "${DEVENV_BIND_IP:-127.0.0.1}:${PORT_PREFIX:-47}53:53/tcp"
- "${DEVENV_BIND_IP:-127.0.0.1}:${PORT_PREFIX:-47}53:53/udp"
- "${DEVENV_BIND_IP:-127.0.0.1}:${PORT_PREFIX:-47}83:8081"
volumes:
- "lmdb:/lmdb"
- "./docker/pdns/run.sh:/run.sh:ro"
user: root
init: true
entrypoint: /run.sh
sync1:
build:
dockerfile: Dockerfile
context: .
environment:
instance: 1 # used in config file
ports:
- "${DEVENV_BIND_IP:-127.0.0.1}:${PORT_PREFIX:-47}91:8500"
volumes:
- "lmdb:/lmdb"
- "./docker/pdns/lightningstream.yaml:/lightningstream.yaml:ro"
#- "snapshots:/snapshots"
working_dir: /
user: "953" # pdns
command: --minimum-pid 50 sync
sync2:
build:
dockerfile: Dockerfile
context: .
environment:
instance: 2 # used in config file
ports:
- "${DEVENV_BIND_IP:-127.0.0.1}:${PORT_PREFIX:-47}92:8500"
volumes:
- "lmdb:/lmdb"
- "./docker/pdns/lightningstream.yaml:/lightningstream.yaml:ro"
#- "snapshots:/snapshots"
working_dir: /
user: "953" # pdns
command: --minimum-pid 50 sync
sync3:
build:
dockerfile: Dockerfile
context: .
environment:
instance: 3 # used in config file
ports:
- "${DEVENV_BIND_IP:-127.0.0.1}:${PORT_PREFIX:-47}93:8500"
volumes:
- "lmdb:/lmdb"
- "./docker/pdns/lightningstream.yaml:/lightningstream.yaml:ro"
#- "snapshots:/snapshots"
working_dir: /
user: "953" # pdns
command: --minimum-pid 50 receive