forked from ChainSafe/lodestar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (38 loc) · 1.07 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
version: "3.4"
services:
beacon_node:
image: chainsafe/lodestar:next
restart: always
volumes:
- beacon_node:/data
- logs:/logs
env_file: .env
ports:
- "9000:9000" # P2P port
# - "9596:9596" # REST API port
command: beacon --rootDir /data --api.rest.enabled --api.rest.host 0.0.0.0 --metrics.enabled --logFile /logs/beacon.log --logLevelFile debug --logRotate --logMaxFiles 5
# NodeJS applications have a default memory limit of 2.5GB.
# This limit is bit tight for a Prater node, it is recommended to raise the limit
# since memory may spike during certain network conditions.
environment:
NODE_OPTIONS: --max_old_space_size=6144
prometheus:
build: docker/prometheus
restart: always
volumes:
- "prometheus:/prometheus"
grafana:
build:
context: docker/grafana
args:
GF_SECURITY_ADMIN_PASSWORD: ${GF_SECURITY_ADMIN_PASSWORD}
restart: always
ports:
- "3000:3000"
volumes:
- "grafana:/var/lib/grafana"
volumes:
beacon_node:
logs:
prometheus:
grafana: