mirror of
https://github.com/AtHeartEngineering/lodestar.git
synced 2026-01-09 21:38:03 -05:00
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
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=4096
|
|
|
|
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:
|