forked from migalabs/goteth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (57 loc) · 1.81 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
version: "3.7"
services:
goteth:
build:
context: ./
dockerfile: Dockerfile
init: true
command: >-
blocks
--log-level=${GOTETH_LOG_LEVEL}
--bn-endpoint=${GOTETH_BN_ENDPOINT}
--el-endpoint=${GOTETH_ANALYZER_EL_ENDPOINT:-}
--init-slot=${GOTETH_ANALYZER_INIT_SLOT}
--final-slot=${GOTETH_ANALYZER_FINAL_SLOT}
--db-url=${GOTETH_DB_URL}
--workers-num=${GOTETH_ANALYZER_WORKERS_NUM}
--db-workers-num=${GOTETH_ANALYZER_DB_WORKERS_NUM}
--download-mode=${GOTETH_ANALYZER_DOWNLOAD_MODE}
--metrics=${GOTETH_ANALYZER_METRICS}
--prometheus-port=${GOTETH_ANALYZER_PROMETHEUS_PORT:-9081}
network_mode: "host"
restart: "always"
depends_on:
clickhouse:
condition: service_healthy
val-window:
build:
context: ./
dockerfile: Dockerfile
init: true
command: >-
val-window
--log-level=${GOTETH_LOG_LEVEL}
--bn-endpoint=${GOTETH_BN_ENDPOINT}
--db-url=${GOTETH_DB_URL}
--num-epochs=${GOTETH_VAL_WINDOW_NUM_EPOCHS:-1}
network_mode: "host"
restart: "always"
clickhouse:
image: clickhouse/clickhouse-server:24
user: "$UID:$GID"
hostname: clickhouse
environment:
- CLICKHOUSE_DB=${CH_DB:-goteth_default}
- CLICKHOUSE_USER=${CH_USER:-username}
- CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT=1
- CLICKHOUSE_PASSWORD=${CH_PASSWORD:-password}
volumes:
- ./clickhouse_data/data:/var/lib/clickhouse/
- ./clickhouse_data/logs:/var/log/clickhouse-server/
ports:
- "127.0.0.1:${CH_HTTP_PORT:-8123}:8123"
- "127.0.0.1:${CH_NATIVE_PORT:-9000}:9000"
- "127.0.0.1:${CH_SQL_PORT:-9005}:9005"
healthcheck: # executed inside the container
test: wget --no-verbose --tries=1 --spider http://localhost:8123/ping
interval: 5s