forked from metaplex-foundation/aura
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
151 lines (145 loc) · 5.25 KB
/
docker-compose.yaml
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
version: "3.9"
services:
ingester:
container_name: ingester
restart: always
entrypoint: sh -c "if [ -z '$$MALLOC_CONF' ]; then exec ./ingester; else exec ./profiling_ingester; fi"
env_file:
- .env
network_mode: host
volumes:
- ${INGESTER_ROCKS_DB_PATH}:${INGESTER_ROCKS_DB_PATH_CONTAINER}:rw
- ${INGESTER_SYNCHRONIZER_DUMP_PATH:-/tmp/rocks_dump}:${INGESTER_SYNCHRONIZER_DUMP_PATH:-/tmp/rocks_dump}:rw
- ${INGESTER_ROCKS_BACKUP_DIR}:${INGESTER_ROCKS_BACKUP_DIR}:rw
- ${INGESTER_ROCKS_BACKUP_ARCHIVES_DIR}:${INGESTER_ROCKS_BACKUP_ARCHIVES_DIR}:rw
- ${INGESTER_PROFILING_FILE_PATH}:${INGESTER_PROFILING_FILE_PATH_CONTAINER}:rw
- ${INGESTER_FILE_STORAGE_PATH}:${INGESTER_FILE_STORAGE_PATH_CONTAINER}:rw
- ${INGESTER_MIGRATION_STORAGE_PATH}:${INGESTER_MIGRATION_STORAGE_PATH}:rw
- ./creds.json:/usr/src/app/creds.json
- ./migrations:/usr/src/app/migrations
- ./arweave_wallet.json:/usr/src/app/arweave_wallet.json
- ./heaps:/usr/src/app/heaps:rw
depends_on:
- db
build:
context: .
dockerfile: ingester.Dockerfile
stop_grace_period: 10m
logging:
options:
max-size: "2048m"
das-api:
container_name: das-api
restart: always
entrypoint: sh -c "if [ -z '$$MALLOC_CONF' ]; then exec ./api; else exec ./profiling_api; fi"
env_file:
- .env
network_mode: host
volumes:
- ${API_ROCKS_DB_PATH_CONTAINER}:${API_ROCKS_DB_PATH_CONTAINER}:ro
- ${API_ROCKS_DB_SECONDARY_PATH_CONTAINER}:${API_ROCKS_DB_SECONDARY_PATH_CONTAINER}:rw
- ${API_ARCHIVES_DIR}:${API_ARCHIVES_DIR}:ro
- ${API_FILE_STORAGE_PATH}:${API_FILE_STORAGE_PATH_CONTAINER}:rw
- ./heaps:/usr/src/app/heaps:rw
depends_on:
- db
build:
context: .
dockerfile: ingester.Dockerfile
stop_grace_period: 2m
logging:
options:
max-size: "2048m"
synchronizer:
container_name: synchronizer
restart: always
entrypoint: sh -c "if [ -z '$$MALLOC_CONF' ]; then exec ./synchronizer; else exec ./profiling_synchronizer; fi"
env_file:
- .env
network_mode: host
volumes:
- ${INGESTER_ROCKS_DB_PATH}:${INGESTER_ROCKS_DB_PATH_CONTAINER}:rw
- ${SYNCHRONIZER_DUMP_PATH:-/tmp/rocks_dump}:${SYNCHRONIZER_DUMP_PATH:-/tmp/rocks_dump}:rw
- ${SYNCHRONIZER_ROCKS_DB_SECONDARY_PATH_CONTAINER}:${SYNCHRONIZER_ROCKS_DB_SECONDARY_PATH_CONTAINER}:rw
- ./heaps:/usr/src/app/heaps:rw
depends_on:
- db
build:
context: .
dockerfile: ingester.Dockerfile
stop_grace_period: 5m
logging:
options:
max-size: "2048m"
integrity-verification:
container_name: integrity-verification
restart: always
entrypoint: "./integrity-verification"
env_file:
- .env
network_mode: host
volumes:
- ./creds.json:/usr/src/app/creds.json
- ${INTEGRITY_VERIFICATION_TEST_FILE_PATH}:${INTEGRITY_VERIFICATION_TEST_FILE_PATH_CONTAINER}:rw
- ${INTEGRITY_VERIFICATION_SLOTS_COLLECT_PATH}:${INTEGRITY_VERIFICATION_SLOTS_COLLECT_PATH_CONTAINER}:rw
depends_on:
- db
build:
context: .
dockerfile: integrity_verification.Dockerfile
logging:
options:
max-size: "2048m"
raw-backfiller:
container_name: raw-backfiller
restart: always
entrypoint: sh -c "if [ -z '$$MALLOC_CONF' ]; then exec ./raw_backfiller; else exec ./profiling_raw_backfiller; fi"
env_file:
- .env
network_mode: host
volumes:
- ${INGESTER_ROCKS_DB_PATH}:${INGESTER_ROCKS_DB_PATH_CONTAINER}:rw
- ${INGESTER_PROFILING_FILE_PATH}:${INGESTER_PROFILING_FILE_PATH_CONTAINER}:rw
- ./creds.json:/usr/src/app/creds.json
- ./heaps:/usr/src/app/heaps:rw
stop_grace_period: 5m
build:
context: .
dockerfile: ingester.Dockerfile
logging:
options:
max-size: "2048m"
core-indexing:
container_name: core-indexing
restart: always
entrypoint: sh -c "if [ -z '$$MALLOC_CONF' ]; then exec ./core_indexing; else exec ./profiling_core_indexing; fi"
env_file:
- .env
network_mode: host
volumes:
- ${INGESTER_PROFILING_FILE_PATH}:${INGESTER_PROFILING_FILE_PATH_CONTAINER}:rw
- ./heaps:/usr/src/app/heaps:rw
stop_grace_period: 5m
build:
context: .
dockerfile: ingester.Dockerfile
logging:
options:
max-size: "2048m"
db:
container_name: db
image: 'postgres:14'
command: [ "postgres", "-c", "log_statement=none", "-c", "log_destination=stderr" ,"-c","max_connections=2000", "-c", "max_parallel_workers=32", "-c", "max_parallel_workers_per_gather=24", "-c", "max_parallel_maintenance_workers=8", "-c", "shared_buffers=30GB", "-c", "effective_cache_size=55GB", "-c", "work_mem=1GB", "-c", "max_wal_size=20GB" ]
shm_size: 1g
ports:
- 5432:5432
environment:
POSTGRES_USER: solana # The PostgreSQL user (useful to connect to the database)
POSTGRES_PASSWORD: solana # The PostgreSQL password (useful to connect to the database)
POSTGRES_DB: solana
volumes:
- ${POSTGRE_DB_PATH:-./db-data}:/var/lib/postgresql/data/:rw
- ${INGESTER_SYNCHRONIZER_DUMP_PATH:-/tmp/rocks_dump}:${INGESTER_SYNCHRONIZER_DUMP_PATH:-/tmp/rocks_dump}:ro
logging:
options:
max-size: "100m"