-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
64 lines (58 loc) · 1.34 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
version: '3.9'
networks:
ipehr-network:
driver: bridge
services:
ipehr-index:
image: ghcr.io/bsn-si/ipehr-blockchain-indexes:develop
ports:
- 8545:8545
networks:
- ipehr-network
healthcheck:
test: 'curl --fail -X POST http://localhost:8545 -H "Content-Type: application/json" --data "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_chainId\",\"params\":[]}" || exit 1'
interval: 10s
timeout: 5s
retries: 5
start_period: 5s
ipehr-stat:
build:
context: .
dockerfile: Dockerfile.stat
image: ipehr-stat
pull_policy: never
depends_on:
ipehr-index:
condition: service_healthy
ports:
- 8081:8080
configs:
- source: stats-config
target: /srv/config.json
networks:
- ipehr-network
ipehr-gateway:
build:
context: .
dockerfile: Dockerfile.gateway
image: ipehr-gateway
pull_policy: never
environment:
- GIN_MODE=release
configs:
- source: gateway-config
target: /srv/config.json
depends_on:
ipehr-index:
condition: service_healthy
ipehr-stat:
condition: service_started
ports:
- 8080:8080
networks:
- ipehr-network
configs:
gateway-config:
file: ./ci/gateway-config.json
stats-config:
file: ./ci/stats-config.json