forked from migalabs/armiarma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
74 lines (68 loc) · 2.74 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
version: "3.7"
networks:
cluster:
services:
db:
image: postgres:14.1-alpine
restart: unless-stopped
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
volumes:
- type: bind
source: ./app-data/init-armiarma.sql
target: /docker-entrypoint-initdb.d/docker_postgres_init.sql
- ./app-data/postgresql_db:/var/lib/postgresql/data
networks: [ cluster ]
ports:
- "127.0.0.1:5432:5432"
healthcheck:
test: pg_isready -U user -d armiarmadb
interval: 10s
timeout: 3s
retries: 3
prometheus:
image: prom/prometheus:v2.36.2
restart: unless-stopped
volumes:
- type: bind
source: ./prometheus/
target: /etc/prometheus/
- ./app-data/prometheus_db:/prometheus/data
command:
- '--config.file=/etc/prometheus/docker-prometheus.yml'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
networks: [ cluster ]
ports:
- "127.0.0.1:9090:9090"
grafana:
build: './grafana'
container_name: 'grafana'
environment:
- Datasource=Armiarma
networks: [ cluster ]
ports:
- "127.0.0.1:3000:3000"
eth_crawler:
image: "armiarma:latest"
build:
context: .
dockerfile: Dockerfile
command: |
eth2
--log-level=${CRAWLER_LOG_LEVEL}
--psql-endpoint=${CRAWLER_PSQL_ENDP}
--peers-backup=${CRAWLER_PEERS_BACKUP}
--fork-digest=${CRAWLER_FORK_DIGEST}
--gossip-topic=${CRAWLER_GOSSIP_TOPIC}
--subnet=${CRAWLER_SUBNET}
--persist-connevents=${CRAWLER_PERSIST_CONNEVENTS}
restart: unless-stopped
depends_on:
db:
condition: service_healthy
networks: [ cluster ]
ports:
- "9020:9020"
- "127.0.0.1:9080:9080"