-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose-server.yaml
157 lines (147 loc) · 4.31 KB
/
compose-server.yaml
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
version: '3.9'
# Note:
# 1. seed node should always be the first node to start, and the last node to stop.
# Otherwise, kv data will become inconsistent (node crashing is okay).
# 2. Default stop timeout is 10s, however we need much longer for all the nodes to
# leave the ring gracefully (transferring keys to successor).
# 3. To validate, `make dev-validate` should return the same serials in-between start
# and stop. Also, /_internal/stats should not have keys that are belonging to the
# invalid owner.
services:
# simulate let's encrypt acme
pebble:
extends:
file: compose-pebble.common.yaml
service: pebble_common
ports:
- 14000:14000 # ACME port
- 15000:15000 # Management port
networks:
- specter
dns:
image: specter-dev
restart: unless-stopped
stop_grace_period: 120s
depends_on:
- seed
ports:
- "11153:1153/tcp"
- "11153:1153/udp"
environment:
- DOH=false
networks:
- specter
command: --verbose dns --acme acme://[email protected]@hostedacme.com --acme-ns ns.hostedacme.com/127.0.0.1 --listen dns:1153 --rpc tcp://seed:1280
seed:
image: specter-dev
restart: unless-stopped
stop_grace_period: 120s
depends_on:
- pebble
ports:
- "1113:1113/udp"
- "1113:1113/tcp"
- "11113:1112/tcp"
volumes:
- ./certs:/certs:ro
- seed_kv:/app/data
environment:
- INTERNAL_USER=test
- INTERNAL_PASS=test
- ACME_CA=https://pebble:14000/dir
- DOH=false
networks:
- specter
command: --verbose server --data /app/data --cert /certs --listen seed:1113 --listen-http 1112 --apex dev.con.nect.sh --virtual 3 ${SKIP:---acme acme://[email protected]@hostedacme.com} --listen-rpc tcp://seed:1280
srva:
image: specter-dev
restart: unless-stopped
stop_grace_period: 120s
depends_on:
- seed
ports:
- "2113:1113/udp"
- "2113:1113/tcp"
- "12113:1112/tcp"
volumes:
- ./certs:/certs:ro
- srva_kv:/app/data
environment:
- INTERNAL_USER=test
- INTERNAL_PASS=test
- ACME_CA=https://pebble:14000/dir
- DOH=false
networks:
- specter
command: --verbose server --data /app/data --cert /certs --listen srva:1113 --listen-http 1112 --apex dev.con.nect.sh --virtual 3 ${SKIP:---acme acme://[email protected]@hostedacme.com} --join seed:1113
srvb:
image: specter-dev
restart: unless-stopped
stop_grace_period: 120s
depends_on:
- seed
ports:
- "3113:1113/udp"
- "3113:1113/tcp"
- "13113:1112/tcp"
volumes:
- ./certs:/certs:ro
- srvb_kv:/app/data
environment:
- INTERNAL_USER=test
- INTERNAL_PASS=test
- ACME_CA=https://pebble:14000/dir
- DOH=false
networks:
- specter
command: --verbose server --data /app/data --cert /certs --listen srvb:1113 --listen-http 1112 --apex dev.con.nect.sh --virtual 3 ${SKIP:---acme acme://[email protected]@hostedacme.com} --join seed:1113
srvc:
image: specter-dev
restart: unless-stopped
stop_grace_period: 120s
depends_on:
- seed
ports:
- "4113:1113/udp"
- "4113:1113/tcp"
- "14113:1112/tcp"
volumes:
- ./certs:/certs:ro
- srvc_kv:/app/data
environment:
- INTERNAL_USER=test
- INTERNAL_PASS=test
- ACME_CA=https://pebble:14000/dir
- DOH=false
networks:
- specter
command: --verbose server --data /app/data --cert /certs --listen srvc:1113 --listen-http 1112 --apex dev.con.nect.sh --virtual 3 ${SKIP:---acme acme://[email protected]@hostedacme.com} --join seed:1113
srvd:
image: specter-dev
restart: unless-stopped
stop_grace_period: 120s
depends_on:
- seed
ports:
- "5113:1113/udp"
- "5113:1113/tcp"
- "15113:1112/tcp"
volumes:
- ./certs:/certs:ro
- srvd_kv:/app/data
environment:
- INTERNAL_USER=test
- INTERNAL_PASS=test
- ACME_CA=https://pebble:14000/dir
- DOH=false
networks:
- specter
command: --verbose server --data /app/data --cert /certs --listen srvd:1113 --listen-http 1112 --apex dev.con.nect.sh --virtual 3 ${SKIP:---acme acme://[email protected]@hostedacme.com} --join seed:1113
volumes:
seed_kv:
srva_kv:
srvb_kv:
srvc_kv:
srvd_kv:
networks:
specter: