forked from hyperledger/aries-cloudagent-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (68 loc) · 2.12 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
# Sample docker-compose to start a local aca-py multitenancy agent
# To start aca-py and the postgres database, just run `docker compose up`
# To shut down the services run `docker compose rm` - this will retain the postgres database, so you can change aca-py startup parameters
# and restart the docker containers without losing your wallet data
# If you want to delete your wallet data just run `docker volume ls -q | xargs docker volume rm`
#
# If you want to enable tracing, see elk-stack. Ensure elk-stack is running, uncomment the ACAPY_TRACE environement variables and run `docker compose up`
version: "3"
networks:
app-network:
name: ${APP_NETWORK_NAME:-appnet}
driver: bridge
elk-network:
name: ${ELK_NETWORK_NAME:-elknet}
driver: bridge
services:
ngrok-agent:
image: wernight/ngrok
ports:
- 4067:4040
command: ngrok http multi-agent:8001 --log stdout
networks:
- app-network
multi-agent:
build:
context: .
dockerfile: Dockerfile.acapy
environment:
- NGROK_NAME=ngrok-agent
- ACAPY_AGENT_ACCESS=${ACAPY_AGENT_ACCESS:-local}
- ACAPY_ENDPOINT=http://multi-agent:8001
# - ACAPY_TRACE=${ACAPY_TRACE:-1}
# - ACAPY_TRACE_TARGET=${ACAPY_TRACE_TARGET:-http://logstash:9700/}
# - ACAPY_TRACE_TAG=${ACAPY_TRACE_TAG:-acapy.events}
# - ACAPY_TRACE_LABEL=${ACAPY_TRACE_LABEL:-multi.agent.trace}
- ACAPY_AUTO_ACCEPT_INVITES=true
- ACAPY_LOG_LEVEL=${LOG_LEVEL:-INFO}
- RUST_LOG=${RUST_LOG:-ERROR}
ports:
- 8010:8010
- 8001:8001
depends_on:
- wallet-db
entrypoint: /bin/bash
command: [
"-c",
"sleep 5; \
./ngrok-wait.sh"
]
volumes:
- ./ngrok-wait.sh:/home/indy/ngrok-wait.sh
networks:
- app-network
- elk-network
wallet-db:
image: postgres:14
environment:
- POSTGRES_USER=DB_USER
- POSTGRES_PASSWORD=DB_PASSWORD
ports:
- 5433:5432
volumes:
- wallet-db-data:/var/lib/pgsql/data
- ./max_conns.sql:/docker-entrypoint-initdb.d/max_conns.sql
networks:
- app-network
volumes:
wallet-db-data: