-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
86 lines (85 loc) · 2.32 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
version: "3"
services:
client:
tty: true
build:
context: client
dockerfile: Dockerfile
volumes:
- ./client/src:/usr/src/app/src
ports:
- 3000:3000
networks:
- agent-domain
server:
build:
context: server
dockerfile: Dockerfile
ports:
- 8000:8000
- ${WEBHOOK_PORT}:${WEBHOOK_PORT}
environment:
WEBHOOK_HOST: 0.0.0.0
ADMIN_URL: http://agent:${ADMIN_PORT}
WEBHOOK_PORT: ${WEBHOOK_PORT}
API_KEY: ${ADMIN_API_KEY}
networks:
- agent-domain
entrypoint: /bin/bash
command: [
"-c",
"python -u app/main.py;"
]
agent-wallet-db:
image: postgres:11
container_name: agent-wallet-db
command: postgres -c listen_addresses='*'
environment:
POSTGRES_PASSWORD: dbpass
POSTGRES_USER: postgres
POSTGRES_DB: wallets
volumes:
- ./resources/init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- agent-domain
tty: true
ngrok-agent:
image: wernight/ngrok
command: ngrok http agent:${HTTP_PORT} --log stdout
networks:
- agent-domain
agent:
build:
context: agent
dockerfile: Dockerfile
environment:
ACAPY_OUTBOUND_TRANSPORT: http
ACAPY_ADMIN: "[0.0.0.0,${ADMIN_PORT}]"
ACAPY_WEBHOOK_URL: ${AGENT_WEBHOOK_URL}
ACAPY_ADMIN_API_KEY: ${ADMIN_API_KEY}
ACAPY_LABEL: ${AGENT_NAME}
ACAPY_WALLET_NAME: ${WALLET_NAME}
ACAPY_WALLET_KEY: ${WALLET_KEY}
ACAPY_WALLET_TYPE: indy
ACAPY_WALLET_STORAGE_TYPE: postgres_storage
ACAPY_WALLET_STORAGE_CONFIG: '{"url":"agent-wallet-db:5432","wallet_scheme":"MultiWalletSingleTable"}'
ACAPY_WALLET_STORAGE_CREDS: '{"account":"postgres","password":"dbpass","admin_account":"postgres","admin_password":"dbpass"}'
ACAPY_GENESIS_URL: https://raw.githubusercontent.com/sovrin-foundation/sovrin/master/sovrin/pool_transactions_sandbox_genesis
ACAPY_WALLET_LOCAL_DID: "true"
ACAPY_LOG_LEVEL: info
ACAPY_AUTO_PROVISION: "true"
NGROK_NAME: ngrok-agent
PORT: ${HTTP_PORT}
ports:
- ${HTTP_PORT}:${HTTP_PORT}
- ${ADMIN_PORT}:${ADMIN_PORT}
depends_on:
- agent-wallet-db
networks:
- agent-domain
volumes:
- wallet:/home/indy/.indy_client/wallet
networks:
agent-domain:
volumes:
wallet: