55# If you want to delete your wallet data just run `docker volume ls -q | xargs docker volume rm`
66#
77# If you want to enable tracing, see elk-stack. Ensure elk-stack is running, uncomment the ACAPY_TRACE environment variables and run `docker compose up`
8- # version: "3"
8+ version : " 3"
99
1010
1111networks :
@@ -17,74 +17,71 @@ networks:
1717 name : ${ELK_NETWORK_NAME:-elknet}
1818 driver : bridge
1919 external : true
20-
2120
2221services :
23- # ngrok-faber-alice:
24- # image: ngrok/ngrok:latest
25- # restart: unless-stopped
26- # hostname: ${NGROK_FABER_ALICE_HOST}
27- # environment:
28- # - NGROK_AUTHTOKEN=${NGROK_AUTHTOKEN:-}
29- # command:
30- # - "start"
31- # - "--all"
32- # - "--config"
33- # - "/etc/ngrok.yml"
34- # volumes:
35- # - ./ngrok-faber-alice.yml:/etc/ngrok.yml
36- # networks:
37- # - app-network
38- # # ports:
39- # # - 4040:4040
40- # healthcheck:
41- # test: /bin/bash -c "</dev/tcp/${NGROK_FABER_ALICE_HOST}/4040"
42- # interval: 3s
43- # timeout: 3s
44- # start_period: 5s
45- # retries: 5
22+ ngrok-faber-alice :
23+ image : ngrok/ngrok:latest
24+ restart : unless-stopped
25+ hostname : ${NGROK_FABER_ALICE_HOST}
26+ environment :
27+ - NGROK_AUTHTOKEN=${NGROK_AUTHTOKEN:-}
28+ command :
29+ - " start"
30+ - " --all"
31+ - " --config"
32+ - " /etc/ngrok.yml"
33+ volumes :
34+ - ./ngrok-faber-alice.yml:/etc/ngrok.yml
35+ networks :
36+ - app-network
37+ # ports:
38+ # - 4040:4040
39+ healthcheck :
40+ test : /bin/bash -c "</dev/tcp/${NGROK_FABER_ALICE_HOST}/4040"
41+ interval : 3s
42+ timeout : 3s
43+ start_period : 5s
44+ retries : 5
4645
47- # ngrok-acme-multi:
48- # image: ngrok/ngrok:latest
49- # restart: unless-stopped
50- # hostname: ${NGROK_ACME_MULTI_HOST}
51- # environment:
52- # - NGROK_AUTHTOKEN=${NGROK_AUTHTOKEN:-}
53- # command:
54- # - "start"
55- # - "--all"
56- # - "--config"
57- # - "/etc/ngrok.yml"
58- # volumes:
59- # - ./ngrok-acme-multi.yml:/etc/ngrok.yml
60- # networks:
61- # - app-network
62- # # ports:
63- # # - 4040:4040
64- # healthcheck:
65- # test: /bin/bash -c "</dev/tcp/${NGROK_ACME_MULTI_HOST}/4040"
66- # interval: 3s
67- # timeout: 3s
68- # start_period: 5s
69- # retries: 5
46+ ngrok-acme-multi :
47+ image : ngrok/ngrok:latest
48+ restart : unless-stopped
49+ hostname : ${NGROK_ACME_MULTI_HOST}
50+ environment :
51+ - NGROK_AUTHTOKEN=${NGROK_AUTHTOKEN:-}
52+ command :
53+ - " start"
54+ - " --all"
55+ - " --config"
56+ - " /etc/ngrok.yml"
57+ volumes :
58+ - ./ngrok-acme-multi.yml:/etc/ngrok.yml
59+ networks :
60+ - app-network
61+ # ports:
62+ # - 4040:4040
63+ healthcheck :
64+ test : /bin/bash -c "</dev/tcp/${NGROK_ACME_MULTI_HOST}/4040"
65+ interval : 3s
66+ timeout : 3s
67+ start_period : 5s
68+ retries : 5
7069
7170 faber-agent :
7271 image : playground-image
7372 build :
7473 context : .
7574 dockerfile : Dockerfile.acapy
7675 depends_on :
77- tails-server :
78- condition : service_started
7976 wallet-db :
8077 condition : service_healthy
81- # ngrok-faber-alice:
82- # condition: service_healthy
78+ ngrok-faber-alice :
79+ condition : service_healthy
8380 restart : unless-stopped
8481 hostname : ${FABER_HOST}
8582 environment :
8683 - TUNNEL_HOST=${FABER_TUNNEL_HOST}
87- # - TUNNEL_NAME=${FABER_TUNNEL_NAME}
84+ - TUNNEL_NAME=${FABER_TUNNEL_NAME}
8885 - AGENT_LABEL=${FABER_AGENT_LABEL}
8986 - AGENT_HTTP_IN_PORT=${FABER_AGENT_HTTP_IN_PORT}
9087 - AGENT_HTTP_ADMIN_PORT=${FABER_AGENT_HTTP_ADMIN_PORT}
@@ -94,16 +91,11 @@ services:
9491 - ACAPY_WALLET_STORAGE_CREDS=${FABER_ACAPY_WALLET_STORAGE_CREDS}
9592 - ACAPY_WALLET_NAME=${FABER_ACAPY_WALLET_NAME}
9693 - ACAPY_WALLET_KEY=${FABER_ACAPY_WALLET_KEY}
97- # - ACAPY_GENESIS_URL=${FABER_ACAPY_GENESIS_URL}
94+ - ACAPY_GENESIS_URL=${FABER_ACAPY_GENESIS_URL}
9895 - ACAPY_LOG_LEVEL=${FABER_ACAPY_LOG_LEVEL}
9996 - RUST_LOG=${FABER_RUST_LOG}
10097 - POSTGRESQL_HOST=${FABER_POSTGRESQL_HOST}
10198 - POSTGRESQL_PORT=${FABER_POSTGRESQL_PORT}
102- - ACAPY_NOTIFY_REVOCATION=true
103- - ACAPY_MONITOR_REVOCATION_NOTIFICATION=true
104- - ACAPY_WEBHOOK_URL=${FABER_ACAPY_WEBHOOK_URL}
105-
106- # - ACAPY_WEBHOOK_URL=${FABER_ACAPY_WEBHOOK_URL}
10799 # - ACAPY_TRACE=${FABER_ACAPY_TRACE}
108100 # - ACAPY_TRACE_TARGET=${FABER_ACAPY_TRACE_TARGET}
109101 # - ACAPY_TRACE_TAG=${FABER_ACAPY_TRACE_TAG}
@@ -126,17 +118,15 @@ services:
126118 context : .
127119 dockerfile : Dockerfile.acapy
128120 depends_on :
129- tails-server :
130- condition : service_started
131121 wallet-db :
132122 condition : service_healthy
133- # ngrok-faber-alice:
134- # condition: service_healthy
123+ ngrok-faber-alice :
124+ condition : service_healthy
135125 restart : unless-stopped
136126 hostname : ${ALICE_HOST}
137127 environment :
138128 - TUNNEL_HOST=${ALICE_TUNNEL_HOST}
139- # - TUNNEL_NAME=${ALICE_TUNNEL_NAME}
129+ - TUNNEL_NAME=${ALICE_TUNNEL_NAME}
140130 - AGENT_LABEL=${ALICE_AGENT_LABEL}
141131 - AGENT_HTTP_IN_PORT=${ALICE_AGENT_HTTP_IN_PORT}
142132 - AGENT_HTTP_ADMIN_PORT=${ALICE_AGENT_HTTP_ADMIN_PORT}
@@ -146,16 +136,11 @@ services:
146136 - ACAPY_WALLET_STORAGE_CREDS=${ALICE_ACAPY_WALLET_STORAGE_CREDS}
147137 - ACAPY_WALLET_NAME=${ALICE_ACAPY_WALLET_NAME}
148138 - ACAPY_WALLET_KEY=${ALICE_ACAPY_WALLET_KEY}
149- # - ACAPY_GENESIS_URL=${ALICE_ACAPY_GENESIS_URL}
139+ - ACAPY_GENESIS_URL=${ALICE_ACAPY_GENESIS_URL}
150140 - ACAPY_LOG_LEVEL=${ALICE_ACAPY_LOG_LEVEL}
151141 - RUST_LOG=${ALICE_RUST_LOG}
152142 - POSTGRESQL_HOST=${ALICE_POSTGRESQL_HOST}
153143 - POSTGRESQL_PORT=${ALICE_POSTGRESQL_PORT}
154- - ACAPY_NOTIFY_REVOCATION=true
155- - ACAPY_MONITOR_REVOCATION_NOTIFICATION=true
156- - ACAPY_WEBHOOK_URL=${ALICE_ACAPY_WEBHOOK_URL}
157-
158- # - ACAPY_WEBHOOK_URL=https://webhook.site/1f72e79c-56c4-4b4f-8759-f007c09a9114
159144 # - ACAPY_TRACE=${ALICE_ACAPY_TRACE}
160145 # - ACAPY_TRACE_TARGET=${ALICE_ACAPY_TRACE_TARGET}
161146 # - ACAPY_TRACE_TAG=${ALICE_ACAPY_TRACE_TAG}
@@ -178,17 +163,15 @@ services:
178163 context : .
179164 dockerfile : Dockerfile.acapy
180165 depends_on :
181- tails-server :
182- condition : service_started
183166 wallet-db :
184167 condition : service_healthy
185- # ngrok-acme-multi:
186- # condition: service_healthy
168+ ngrok-acme-multi :
169+ condition : service_healthy
187170 restart : unless-stopped
188171 hostname : ${ACME_HOST}
189172 environment :
190173 - TUNNEL_HOST=${ACME_TUNNEL_HOST}
191- # - TUNNEL_NAME=${ACME_TUNNEL_NAME}
174+ - TUNNEL_NAME=${ACME_TUNNEL_NAME}
192175 - AGENT_LABEL=${ACME_AGENT_LABEL}
193176 - AGENT_HTTP_IN_PORT=${ACME_AGENT_HTTP_IN_PORT}
194177 - AGENT_HTTP_ADMIN_PORT=${ACME_AGENT_HTTP_ADMIN_PORT}
@@ -198,8 +181,7 @@ services:
198181 - ACAPY_WALLET_STORAGE_CREDS=${ACME_ACAPY_WALLET_STORAGE_CREDS}
199182 - ACAPY_WALLET_NAME=${ACME_ACAPY_WALLET_NAME}
200183 - ACAPY_WALLET_KEY=${ACME_ACAPY_WALLET_KEY}
201- # - ACAPY_GENESIS_URL=${ACME_ACAPY_GENESIS_URL}
202- - ACAPY_WEBHOOK_URL=${ACME_ACAPY_WEBHOOK_URL}
184+ - ACAPY_GENESIS_URL=${ACME_ACAPY_GENESIS_URL}
203185 - ACAPY_LOG_LEVEL=${ACME_ACAPY_LOG_LEVEL}
204186 - RUST_LOG=${ACME_RUST_LOG}
205187 - POSTGRESQL_HOST=${ACME_POSTGRESQL_HOST}
@@ -221,23 +203,20 @@ services:
221203 retries : 5
222204
223205 multi-agent :
224- profiles : [multi]
225206 image : playground-image
226207 build :
227208 context : .
228209 dockerfile : Dockerfile.acapy
229210 depends_on :
230- tails-server :
231- condition : service_started
232211 wallet-db :
233212 condition : service_healthy
234- # ngrok-acme-multi:
235- # condition: service_healthy
213+ ngrok-acme-multi :
214+ condition : service_healthy
236215 restart : unless-stopped
237216 hostname : ${MULTI_HOST}
238217 environment :
239218 - TUNNEL_HOST=${MULTI_TUNNEL_HOST}
240- # - TUNNEL_NAME=${MULTI_TUNNEL_NAME}
219+ - TUNNEL_NAME=${MULTI_TUNNEL_NAME}
241220 - AGENT_LABEL=${MULTI_AGENT_LABEL}
242221 - AGENT_HTTP_IN_PORT=${MULTI_AGENT_HTTP_IN_PORT}
243222 - AGENT_HTTP_ADMIN_PORT=${MULTI_AGENT_HTTP_ADMIN_PORT}
@@ -247,7 +226,7 @@ services:
247226 - ACAPY_WALLET_STORAGE_CREDS=${MULTI_ACAPY_WALLET_STORAGE_CREDS}
248227 - ACAPY_WALLET_NAME=${MULTI_ACAPY_WALLET_NAME}
249228 - ACAPY_WALLET_KEY=${MULTI_ACAPY_WALLET_KEY}
250- # - ACAPY_GENESIS_URL=${MULTI_ACAPY_GENESIS_URL}
229+ - ACAPY_GENESIS_URL=${MULTI_ACAPY_GENESIS_URL}
251230 - ACAPY_LOG_LEVEL=${MULTI_ACAPY_LOG_LEVEL}
252231 - RUST_LOG=${MULTI_RUST_LOG}
253232 - POSTGRESQL_HOST=${MULTI_POSTGRESQL_HOST}
@@ -279,28 +258,14 @@ services:
279258 networks :
280259 - app-network
281260 volumes :
282- - wallet-db-data:/var/lib/postgresql /data
261+ - wallet-db-data:/var/lib/pgsql /data
283262 - ./max_conns.sql:/docker-entrypoint-initdb.d/max_conns.sql
284263 healthcheck :
285264 test : pg_isready -U postgres
286265 interval : 3s
287266 timeout : 3s
288267 retries : 5
289268
290- tails-server :
291- image : ghcr.io/bcgov/tails-server:1
292- command : >
293- tails-server
294- --host 0.0.0.0
295- --port 6543
296- --storage-path /app/storage
297- --log-level DEBUG
298- networks :
299- - app-network
300- volumes :
301- - tails-file-data:/app/storage
302-
303269volumes :
304270 wallet-db-data :
305- tails-file-data :
306271
0 commit comments