-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
176 lines (166 loc) · 5.13 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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
version: '3'
networks:
dims-net:
driver: bridge
ipam:
driver: default
config:
- subnet: ${IDC_API_SUBNET-172.16.0.0/24}
services:
pool:
build:
context: ./test-pool
image: dims/test-pool
container_name: dims-pool
ports:
- ${IDC_POOL_PORTS-9701-9708}:${IDC_POOL_PORTS-9701-9708}
- ${IDC_POOL_INFO_PORT-8001}:${IDC_POOL_INFO_PORT-8001}
environment:
- IDC_POOL_NAME=${IDC_POOL_NAME-testPool}
- IDC_POOL_IP=${IDC_POOL_IP-127.0.0.1}
- IDC_PORT_START=${IDC_PORT_START-9700}
network_mode: bridge
mongodb:
image: mongo:4
container_name: dims-db
environment:
- MONGO_INITDB_ROOT_USERNAME=${IDC_API_DB_USER}
- MONGO_INITDB_ROOT_PASSWORD=${IDC_API_DB_PASSWORD}
networks:
- dims-net
schema:
image: idchain/schema-extensions:1.0
container_name: schema-compiler
environment:
- IDC_SCHEMA_IP=${IDC_SCHEMA_IP-172.16.0.150}
- IDC_SCHEMA_PORT=${IDC_SCHEMA_PORT-9000}
networks:
dims-net:
ipv4_address: ${IDC_SCHEMA_IP-172.16.0.150}
api:
build:
context: ./api
image: dims/iea-api
container_name: dims-api
environment:
- RUST_LOG=${RUST_LOG-debug}
- IDC_API_LOG_LEVEL=${IDC_API_LOG_LEVEL-debug}
- IDC_API_HOST=${IDC_API_HOST-172.16.0.100}
- IDC_API_PORT=${IDC_API_PORT-8000}
- IDC_API_DOMAIN_PROTOCOL=${IDC_API_DOMAIN_PROTOCOL-http}
- IDC_API_DOMAIN_HOST=${IDC_API_DOMAIN_HOST-172.16.0.100}
- IDC_API_DOMAIN_PORT=${IDC_API_DOMAIN_PORT-8000}
- IDC_API_NYM_ALWAYS=${IDC_API_NYM_ALWAYS-false}
- IDC_API_JWT_SECRET=${IDC_API_JWT_SECRET-changeme}
- IDC_API_DB_HOST=${IDC_API_DB_HOST-mongodb}
- IDC_API_DB_PORT=${IDC_API_DB_PORT-27017}
- IDC_API_DB_USER
- IDC_API_DB_PASSWORD
- IDC_API_SALTROUNDS=${IDC_API_SALTROUNDS-10}
- IDC_API_GENESIS_TXN=${IDC_API_GENESIS_TXN-./pool_transactions_genesis}
- IDC_POOL_IP=${IDC_POOL_IP-172.16.0.200}
- IDC_POOL_NAME=${IDC_POOL_NAME-testPool}
- IDC_POOL_INFO_PORT=${IDC_POOL_INFO_PORT-8001}
- IDC_SCHEMA_IP=${IDC_SCHEMA_IP-172.16.0.150}
- IDC_SCHEMA_PORT=${IDC_SCHEMA_PORT-9000}
ports:
- ${IDC_API_PORT-8000}:${IDC_API_PORT-8000}
depends_on:
- pool
- mongodb
- schema
networks:
dims-net:
ipv4_address: ${IDC_API_HOST-172.16.0.100}
demomongobackend:
build:
context: ./demo-mongo-backend
image: dims/demo-mongo-backend
container_name: dims-demo-mongo-backend
environment:
- DEMO_BACKEND_HOST=${DEMO_BACKEND_HOST-0.0.0.0}
- DEMO_BACKEND_PORT=${DEMO_BACKEND_PORT-8011}
- IDC_API_DB_HOST=${IDC_API_DB_HOST-mongodb}
- IDC_API_DB_PORT=${IDC_API_DB_PORT-27017}
- IDC_API_DB_USER
- IDC_API_DB_PASSWORD
- IDC_API_JWT_SECRET=${IDC_API_JWT_SECRET-changeme}
ports:
- ${DEMO_BACKEND_PORT-8011}:${DEMO_BACKEND_PORT-8011}
depends_on:
- mongodb
networks:
- dims-net
cloudagent:
build:
context: ./cloudagent
image: dims/cloud-agent
container_name: dims-cloudagent
environment:
- IDC_CA_APP_HOST
- IDC_CA_APP_PORT=${IDC_CA_APP_PORT-8005}
- IDC_CA_DOMAIN_HOST
- IDC_CA_DOMAIN_PORT
- IDC_CA_DB_PATH=${IDC_CA_DB_PATH-'./data'}
- IDC_CA_WALLET_NAME=${IDC_CA_DB_PATH-caWallet}
- IDC_CA_SEED
- IDC_CA_SECRET=${IDC_CA_SECRET-changeMe}
- IDC_CA_FIREBASE_PROJECT_URL
- IDC_CA_FIREBASE_ADMIN_SDK_FILE_HOST_PATH
- IDC_POOL_IP
- IDC_POOL_INFO_PORT
- IDC_POOL_NAME
- IDC_CA_GENESIS_TXN
- IDC_CA_SSL
- IDC_CA_LOG_LEVEL
- RUST_LOG
depends_on:
- pool
volumes:
- ${IDC_CA_FIREBASE_ADMIN_SDK_FILE_HOST_PATH}:/home/indy/app/config:ro
ports:
- ${IDC_CA_APP_PORT-8005}:${IDC_CA_APP_PORT-8005}
networks:
- dims-net
issuerapp:
build:
context: ./issuer-app
image: dims/issuer-app
container_name: dims-issuerapp
environment:
- REACT_APP_IDC_API_DOMAIN_PROTOCOL=${IDC_API_DOMAIN_PROTOCOL-http}
- REACT_APP_IDC_API_DOMAIN_HOST=${IDC_API_DOMAIN_HOST-172.16.0.100}
- REACT_APP_IDC_API_DOMAIN_PORT=${IDC_API_DOMAIN_PORT-8000}
- REACT_APP_DIMS_DEMO_MONGO_URL=${DIMS_DEMO_MONGO_URL}
ports:
- 3000:3000
networks:
- dims-net
openidssilogin:
build:
context: ./openid-ssi_login
image: dims/openidssilogin
container_name: dims-openidssilogin
environment:
- IDC_API_DOMAIN_PROTOCOL
- IDC_API_DOMAIN_HOST
- IDC_API_DOMAIN_PORT
- DIMS_OIDC_PROVIDER_CONFIG_PATH=./config/config.json
- DIMS_OIDC_PROVIDER_PORT
- DIMS_OIDC_PROVIDER_URL
- DIMS_OIDC_PROVIDER_SECURE_KEY
- DIMS_OIDC_PROVIDER_API_POLL_INTERVAL
- DIMS_OIDC_PROVIDER_API_USER
- DIMS_OIDC_PROVIDER_API_PASS
- DIMS_OIDC_PROVIDER_API_WALLET_NAME
- DIMS_OIDC_PROVIDER_API_WALLET_KEY
- DIMS_OIDC_PROVIDER_API_WALLET_SEED
- NODE_ENV=development
depends_on:
- api
volumes:
- ./oidc-config:/app/config
ports:
- ${DIMS_OIDC_PROVIDER_PORT-3001}:${DIMS_OIDC_PROVIDER_PORT-3001}
networks:
- dims-net