diff --git a/docker-compose/goerli/docker-compose.yml b/docker-compose/goerli/docker-compose.yml index 26a1b4e..9e227c7 100644 --- a/docker-compose/goerli/docker-compose.yml +++ b/docker-compose/goerli/docker-compose.yml @@ -10,7 +10,7 @@ services: - 8545:8545 - 8546:8546 volumes: - - ./data/geth:/data + - ${GETH_DATADIR:-/data/geth}:/data stop_grace_period: 2m healthcheck: test: ["CMD-SHELL", "geth attach --datadir /data --exec eth.blockNumber"] @@ -45,14 +45,14 @@ services: - "if [ ! -f genesis.ssz ]; then wget 'https://github.com/eth-clients/eth2-networks/raw/master/shared/prater/genesis.ssz'; fi" working_dir: /genesis volumes: - - ./data/prysm:/genesis + - ${PRYSM_DATADIR:-/data/prysm}:/genesis prysm: image: gcr.io/prysmaticlabs/prysm/beacon-chain:v4.1.1 restart: unless-stopped stop_grace_period: 2m volumes: - - ./data/prysm:/data - - ./data/geth:/geth + - ${PRYSM_DATADIR:-/data/prysm}:/data + - ${GETH_DATADIR:-/data/geth}:/geth depends_on: geth: condition: service_healthy diff --git a/docker-compose/holesky/docker-compose.yml b/docker-compose/holesky/docker-compose.yml index e331a40..a76f81e 100644 --- a/docker-compose/holesky/docker-compose.yml +++ b/docker-compose/holesky/docker-compose.yml @@ -10,7 +10,7 @@ services: - 8545:8545 - 8546:8546 volumes: - - ./data/geth:/data + - ${GETH_DATADIR:-/data/geth}:/data stop_grace_period: 2m healthcheck: test: ["CMD-SHELL", "geth attach --datadir /data --exec eth.blockNumber"] @@ -45,14 +45,14 @@ services: - "if [ ! -f genesis.ssz ]; then wget 'https://github.com/eth-clients/holesky/raw/main/custom_config_data/genesis.ssz'; fi" working_dir: /genesis volumes: - - ./data/prysm:/genesis + - ${PRYSM_DATADIR:-/data/prysm}:/genesis prysm: image: gcr.io/prysmaticlabs/prysm/beacon-chain:v4.1.1 restart: unless-stopped stop_grace_period: 2m volumes: - - ./data/prysm:/data - - ./data/geth:/geth + - ${PRYSM_DATADIR:-/data/prysm}:/data + - ${GETH_DATADIR:-/data/geth}:/geth depends_on: geth: condition: service_healthy diff --git a/docker-compose/sepolia/docker-compose.yml b/docker-compose/sepolia/docker-compose.yml index 4564b9f..8d01adc 100644 --- a/docker-compose/sepolia/docker-compose.yml +++ b/docker-compose/sepolia/docker-compose.yml @@ -10,7 +10,7 @@ services: - 8545:8545 - 8546:8546 volumes: - - ./data/geth:/data + - ${GETH_DATADIR:-/data/geth}:/data stop_grace_period: 2m healthcheck: test: ["CMD-SHELL", "geth attach --datadir /data --exec eth.blockNumber"] @@ -45,14 +45,14 @@ services: - "if [ ! -f genesis.ssz ]; then wget 'https://github.com/eth-clients/merge-testnets/raw/main/sepolia/genesis.ssz'; fi" working_dir: /genesis volumes: - - ./data/prysm:/genesis + - ${PRYSM_DATADIR:-/data/prysm}:/genesis prysm: image: gcr.io/prysmaticlabs/prysm/beacon-chain:v4.1.1 restart: unless-stopped stop_grace_period: 2m volumes: - - ./data/prysm:/data - - ./data/geth:/geth + - ${PRYSM_DATADIR:-/data/prysm}:/data + - ${GETH_DATADIR:-/data/geth}:/geth depends_on: geth: condition: service_healthy