102 lines
2.3 KiB
YAML
102 lines
2.3 KiB
YAML
|
|
version: "3.8"
|
||
|
|
|
||
|
|
services:
|
||
|
|
anvil:
|
||
|
|
build:
|
||
|
|
context: .
|
||
|
|
dockerfile: containers/foundry.Containerfile
|
||
|
|
command: ["/workspace/containers/anvil-entrypoint.sh"]
|
||
|
|
volumes:
|
||
|
|
- .:/workspace:Z
|
||
|
|
expose:
|
||
|
|
- "8545"
|
||
|
|
restart: unless-stopped
|
||
|
|
|
||
|
|
bootstrap:
|
||
|
|
build:
|
||
|
|
context: .
|
||
|
|
dockerfile: containers/foundry.Containerfile
|
||
|
|
command: ["/workspace/containers/bootstrap.sh"]
|
||
|
|
volumes:
|
||
|
|
- .:/workspace:Z
|
||
|
|
environment:
|
||
|
|
- ANVIL_RPC=http://anvil:8545
|
||
|
|
depends_on:
|
||
|
|
anvil:
|
||
|
|
condition: service_started
|
||
|
|
restart: "no"
|
||
|
|
|
||
|
|
ponder:
|
||
|
|
build:
|
||
|
|
context: .
|
||
|
|
dockerfile: containers/node-dev.Containerfile
|
||
|
|
entrypoint: ["/workspace/containers/ponder-dev-entrypoint.sh"]
|
||
|
|
volumes:
|
||
|
|
- .:/workspace:Z
|
||
|
|
- ponder-node-modules:/workspace/services/ponder/node_modules
|
||
|
|
working_dir: /workspace
|
||
|
|
environment:
|
||
|
|
- CHOKIDAR_USEPOLLING=1
|
||
|
|
depends_on:
|
||
|
|
bootstrap:
|
||
|
|
condition: service_completed_successfully
|
||
|
|
expose:
|
||
|
|
- "42069"
|
||
|
|
restart: unless-stopped
|
||
|
|
|
||
|
|
frontend:
|
||
|
|
build:
|
||
|
|
context: .
|
||
|
|
dockerfile: containers/node-dev.Containerfile
|
||
|
|
entrypoint: ["/workspace/containers/frontend-dev-entrypoint.sh"]
|
||
|
|
volumes:
|
||
|
|
- .:/workspace:Z
|
||
|
|
- frontend-node-modules:/workspace/web-app/node_modules
|
||
|
|
working_dir: /workspace
|
||
|
|
environment:
|
||
|
|
- CHOKIDAR_USEPOLLING=1
|
||
|
|
depends_on:
|
||
|
|
bootstrap:
|
||
|
|
condition: service_completed_successfully
|
||
|
|
expose:
|
||
|
|
- "5173"
|
||
|
|
restart: unless-stopped
|
||
|
|
|
||
|
|
txn-bot:
|
||
|
|
build:
|
||
|
|
context: .
|
||
|
|
dockerfile: containers/node-dev.Containerfile
|
||
|
|
entrypoint: ["/workspace/containers/txn-bot-entrypoint.sh"]
|
||
|
|
volumes:
|
||
|
|
- .:/workspace:Z
|
||
|
|
- txn-node-modules:/workspace/services/txnBot/node_modules
|
||
|
|
working_dir: /workspace
|
||
|
|
depends_on:
|
||
|
|
bootstrap:
|
||
|
|
condition: service_completed_successfully
|
||
|
|
expose:
|
||
|
|
- "43069"
|
||
|
|
restart: unless-stopped
|
||
|
|
|
||
|
|
caddy:
|
||
|
|
image: caddy:2.8
|
||
|
|
volumes:
|
||
|
|
- ./containers/Caddyfile:/etc/caddy/Caddyfile:Z
|
||
|
|
ports:
|
||
|
|
- "80:80"
|
||
|
|
depends_on:
|
||
|
|
anvil:
|
||
|
|
condition: service_started
|
||
|
|
ponder:
|
||
|
|
condition: service_started
|
||
|
|
frontend:
|
||
|
|
condition: service_started
|
||
|
|
txn-bot:
|
||
|
|
condition: service_started
|
||
|
|
restart: unless-stopped
|
||
|
|
|
||
|
|
volumes:
|
||
|
|
frontend-node-modules:
|
||
|
|
ponder-node-modules:
|
||
|
|
txn-node-modules:
|