forked from Trustia-labs/babylone-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
32 lines (29 loc) · 928 Bytes
/
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
version: '3.8'
services:
babylon-node:
build:
context: .
# Assuming your Dockerfile is located in the "root" directory
args:
- NODE_NAME=$NODE_NAME
container_name: babylon-node
volumes:
- babylon_data:/root/.babylond
# This volume ensures that your node data is persistent
restart: always
environment:
- DAEMON_NAME=babylond
- DAEMON_HOME=/root/.babylond
- DAEMON_RESTART_AFTER_UPGRADE=true
- DAEMON_ALLOW_DOWNLOAD_BINARIES=false
env_file:
- .env
# Ports can be added if your node needs to communicate with external networks
#ports:
# - "external_port:internal_port"
tty: true
command: [ "cosmovisor", "run", "start", "--x-crisis-skip-assert-invariants" ]
# Overrides the CMD defined in the Dockerfile, directly starting Cosmovisor
volumes:
babylon_data:
# Defines a volume for persistent data storage