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 rpc-gateway: image: nginx:1.27-alpine container_name: homelab-blockchain-rpc-gateway depends_on: - anvil ports: - "${BLOCKCHAIN_RPC_GATEWAY_PORT:-18545}:80" volumes: - ./nginx/rpc-gateway.conf:/etc/nginx/conf.d/default.conf:ro restart: unless-stopped