forked from OpenMined/PyDentity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
157 lines (154 loc) · 5.01 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
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"
services:
ngrok-external:
image: wernight/ngrok
command: ngrok http external-agent:${EXTERNAL_HTTP_PORT} --log stdout
networks:
- indy_demo
external-agent:
build:
context: ../../
dockerfile: dockerfiles/agents/Dockerfile.ngrok
environment:
- NGROK_NAME=ngrok-external
- ADMIN_URL=http://external-agent:${EXTERNAL_ADMIN_PORT}
- AGENT_NAME=${EXTERNAL_AGENT_NAME}
- ADMIN_PORT=${EXTERNAL_ADMIN_PORT}
- HTTP_PORT=${EXTERNAL_HTTP_PORT}
- ACAPY_WEBHOOK_URL=${EXTERNAL_WEBHOOK_URL}
- AGENT_ENDPOINT=${EXTERNAL_AGENT_ENDPOINT}
- WALLET_SEED=${EXTERNAL_WALLET_SEED}
- WALLET_NAME=${EXTERNAL_WALLET_NAME}
- WALLET_KEY=${EXTERNAL_WALLET_KEY}
- WALLET_TYPE=${WALLET_TYPE}
- ACAPY_ADMIN_INSECURE_MODE=${EXTERNAL_ADMIN_SECURE}
- GENESIS_URL=${GENESIS_URL}
ports:
- ${EXTERNAL_HTTP_PORT}:${EXTERNAL_HTTP_PORT}
- ${EXTERNAL_ADMIN_PORT}:${EXTERNAL_ADMIN_PORT}
networks:
- indy_demo
ngrok-mediator:
image: wernight/ngrok
command: ngrok http mediator-agent:${MEDIATOR_HTTP_PORT} --log stdout
networks:
- indy_demo
mediator-agent:
build:
context: ../../
dockerfile: dockerfiles/agents/Dockerfile.ngrok
environment:
- NGROK_NAME=ngrok-mediator
- ADMIN_URL=http://mediator-agent:${MEDIATOR_ADMIN_PORT}
- AGENT_NAME=${MEDIATOR_AGENT_NAME}
- ADMIN_PORT=${MEDIATOR_ADMIN_PORT}
- HTTP_PORT=${MEDIATOR_HTTP_PORT}
- ACAPY_WEBHOOK_URL=${MEDIATOR_WEBHOOK_URL}
- AGENT_ENDPOINT=${MEDIATOR_AGENT_ENDPOINT}
- WALLET_SEED=${MEDIATOR_WALLET_SEED}
- WALLET_NAME=${MEDIATOR_WALLET_NAME}
- WALLET_KEY=${MEDIATOR_WALLET_KEY}
- WALLET_TYPE=${WALLET_TYPE}
- ACAPY_ADMIN_INSECURE_MODE=${MEDIATOR_ADMIN_SECURE}
- GENESIS_URL=${GENESIS_URL}
ports:
- ${MEDIATOR_HTTP_PORT}:${MEDIATOR_HTTP_PORT}
- ${MEDIATOR_ADMIN_PORT}:${MEDIATOR_ADMIN_PORT}
networks:
- indy_demo
mediator-notebook:
build:
context: ../../
dockerfile: dockerfiles/controllers/Dockerfile.basiccontroller
args:
- jupyter_port=${MEDIATOR_JUPYTER_PORT}
depends_on:
- mediator-agent
networks:
- indy_demo
volumes:
- ${PWD}/notebooks/mediator:/workspace
ports:
- ${MEDIATOR_JUPYTER_PORT}:8888
- ${MEDIATOR_WEBHOOK_PORT}:${MEDIATOR_WEBHOOK_PORT}
wallets-db:
image: postgres:11
container_name: wallets-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:
- indy_demo
tty: true
ngrok-multitenant:
image: wernight/ngrok
command: ngrok http multitenant-agent:${MULTITENANT_HTTP_PORT} --log stdout
networks:
- indy_demo
multitenant-agent:
build:
context: ../../
dockerfile: dockerfiles/agents/Dockerfile.ngrok
environment:
- NGROK_NAME=ngrok-multitenant
- ADMIN_URL=http://multitenant-agent:${MULTITENANT_ADMIN_PORT}
- AGENT_NAME=${MULTITENANT_AGENT_NAME}
- ADMIN_PORT=${MULTITENANT_ADMIN_PORT}
- HTTP_PORT=${MULTITENANT_HTTP_PORT}
- ACAPY_WEBHOOK_URL=${MULTITENANT_WEBHOOK_URL}
- AGENT_ENDPOINT=${MULTITENANT_AGENT_ENDPOINT}
- WALLET_SEED=${MULTITENANT_WALLET_SEED}
- WALLET_NAME=${MULTITENANT_WALLET_NAME}
- WALLET_KEY=${MULTITENANT_WALLET_KEY}
- WALLET_TYPE=${WALLET_TYPE}
- ACAPY_ADMIN_INSECURE_MODE=${MULTITENANT_ADMIN_SECURE}
- GENESIS_URL=${GENESIS_URL}
- ACAPY_MULTITENANT=true
- ACAPY_MULTITENANT_JWT_SECRET="password"
- ACAPY_MULTITENANT_ADMIN=true
- ACAPY_WALLET_STORAGE_TYPE=postgres_storage
- ACAPY_WALLET_STORAGE_CONFIG={"url":"wallets-db:5432","wallet_scheme":"MultiWalletSingleTable"}
- ACAPY_WALLET_STORAGE_CREDS={"account":"postgres","password":"dbpass","admin_account":"postgres","admin_password":"dbpass"}
ports:
- ${MULTITENANT_HTTP_PORT}:${MULTITENANT_HTTP_PORT}
- ${MULTITENANT_ADMIN_PORT}:${MULTITENANT_ADMIN_PORT}
depends_on:
- wallets-db
networks:
- indy_demo
multitenant-notebook:
build:
context: ../../
dockerfile: dockerfiles/controllers/Dockerfile.basiccontroller
args:
- jupyter_port=${MULTITENANT_JUPYTER_PORT}
depends_on:
- multitenant-agent
networks:
- indy_demo
volumes:
- ./notebooks/multitenant:/workspace
ports:
- "8888:8888"
- ${MULTITENANT_WEBHOOK_PORT}:${MULTITENANT_WEBHOOK_PORT}
external-notebook:
build:
context: ../../
dockerfile: dockerfiles/controllers/Dockerfile.basiccontroller
args:
- jupyter_port=${EXTERNAL_JUPYTER_PORT}
depends_on:
- external-agent
networks:
- indy_demo
volumes:
- ${PWD}/notebooks/external:/workspace
ports:
- "8889:8888"
- ${EXTERNAL_WEBHOOK_PORT}:${EXTERNAL_WEBHOOK_PORT}
networks:
indy_demo: