31 lines
696 B
YAML
31 lines
696 B
YAML
services:
|
|
anvil:
|
|
image: ghcr.io/foundry-rs/foundry:latest
|
|
container_name: homelab-blockchain-anvil
|
|
command:
|
|
- anvil
|
|
- --host
|
|
- 0.0.0.0
|
|
- --port
|
|
- "8545"
|
|
- --chain-id
|
|
- "${BLOCKCHAIN_CHAIN_ID:-31337}"
|
|
- --block-time
|
|
- "${BLOCKCHAIN_BLOCK_TIME:-2}"
|
|
- --allow-origin
|
|
- "*"
|
|
ports:
|
|
- "${BLOCKCHAIN_RPC_PORT:-8545}:8545"
|
|
restart: unless-stopped
|
|
|
|
explorer:
|
|
image: nginx:1.27-alpine
|
|
container_name: homelab-blockchain-explorer
|
|
depends_on:
|
|
- anvil
|
|
ports:
|
|
- "${BLOCKCHAIN_EXPLORER_PORT:-8089}:80"
|
|
volumes:
|
|
- ./explorer:/usr/share/nginx/html:ro
|
|
restart: unless-stopped
|