-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
94 lines (94 loc) · 2.56 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
version: '3.5'
services:
proof-server:
image: "ghcr.io/midnight-ntwrk/proof-server:2.0.6"
command: ["midnight-proof-server --network undeployed"]
ports:
- "6300:6300"
environment:
RUST_BACKTRACE: "full"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:6300/version" ]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
indexer:
image: "ghcr.io/midnight-ntwrk/midnight-pubsub-indexer:1.1.0"
ports:
- "8088"
command: ['-Dlogback.configurationFile=logback-json-file.xml']
environment:
OPERATION_MODE: 'indexer'
LOG_LEVEL: 'TRACE'
LEDGER_NETWORK_ID: 'Undeployed'
SUBSTRATE_NODE_URL: 'node'
SUBSTRATE_NODE_WS_URL: 'ws://node:9944'
DB_VENDOR: 'postgresql'
DB_URL: 'postgres:5432/pubsub-indexer'
DB_USER: 'pubsub-indexer'
DB_PASS: 'pubsub-indexer'
REDIS_URL: 'tcp://redis:6379'
OTEL_JAVAAGENT_ENABLED: 'false'
healthcheck:
test: ['CMD', 'egrep', '"Block .* was stored at height 0"', '/tmp/app_logs/server.log']
interval: 1s
timeout: 5s
retries: 30
depends_on:
node:
condition: service_started
postgres:
condition: service_started
redis:
condition: service_started
pubsub:
image: 'ghcr.io/midnight-ntwrk/midnight-pubsub-indexer:1.1.0'
platform: linux/amd64
expose: ['8088']
ports:
- '8088:8088'
environment:
OPERATION_MODE: 'pubsub'
LOG_LEVEL: 'TRACE'
LEDGER_NETWORK_ID: 'Undeployed'
SUBSTRATE_NODE_URL: 'node'
SUBSTRATE_NODE_WS_URL: 'ws://node:9944'
DB_VENDOR: 'postgresql'
DB_URL: 'postgres:5432/pubsub-indexer'
DB_USER: 'pubsub-indexer'
DB_PASS: 'pubsub-indexer'
REDIS_URL: 'tcp://redis:6379'
OTEL_JAVAAGENT_ENABLED: 'false'
depends_on:
postgres:
condition: service_started
redis:
condition: service_started
indexer:
condition: service_healthy
postgres:
image: postgres:15
ports:
- '5432:5432'
environment:
POSTGRES_USER: 'pubsub-indexer'
POSTGRES_PASSWORD: 'pubsub-indexer'
POSTGRES_DB: 'pubsub-indexer'
redis:
image: redis:7.2.4
ports:
- 6379:6379
node:
image: "ghcr.io/midnight-ntwrk/midnight-node:0.2.6-70eb5bf-ariadne"
platform: linux/amd64
ports:
- "9944:9944"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9944/health" ]
interval: 2s
timeout: 5s
retries: 5
start_period: 5s
environment:
RUN_DEV_NET: "TRUE"