added foundry image to docker-compose and run_anvil script

This commit is contained in:
stubbsta 2024-02-22 11:53:16 +02:00
parent 08949fe229
commit 782e7852e6
No known key found for this signature in database
2 changed files with 22 additions and 0 deletions

View File

@ -10,6 +10,18 @@ networks:
services:
foundry:
image: ghcr.io/foundry-rs/foundry:latest
labels:
com.centurylinklabs.watchtower.enable: '${WATCHTOWER_ENABLED:-false}'
entrypoint: sh
command:
- '/opt/run_anvil.sh'
volumes:
- ./run_anvil.sh:/opt/run_anvil.sh:Z
networks:
- simulation
bootstrap:
image: ${NWAKU_IMAGE:-wakuorg/nwaku:latest}
restart: on-failure
@ -43,6 +55,7 @@ services:
- ./run_nwaku.sh:/opt/run_nwaku.sh:Z
depends_on:
- bootstrap
- foundry
networks:
- simulation

9
run_anvil.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/sh
echo "anvil script"
# defaults:
#
exec anvil --port 8540 --chain-id 1337 --block-time 12 --accounts 1
echo "anvil running"