reworked stack

This commit is contained in:
johba 2025-10-07 21:57:32 +00:00
parent 6cbb1781ce
commit f7ef56f65f
12 changed files with 853 additions and 458 deletions

View file

@ -1,5 +1,9 @@
version: "3.8"
networks:
harb-network:
driver: bridge
services:
anvil:
image: ghcr.io/foundry-rs/foundry:latest
@ -11,6 +15,8 @@ services:
ports:
- "127.0.0.1:8545:8545"
restart: unless-stopped
networks:
- harb-network
healthcheck:
test: ["CMD", "cast", "block-number", "--rpc-url", "http://127.0.0.1:8545"]
interval: 2s
@ -29,6 +35,8 @@ services:
expose:
- "5432"
restart: unless-stopped
networks:
- harb-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ponder"]
interval: 5s
@ -45,6 +53,8 @@ services:
environment:
- ANVIL_RPC=http://anvil:8545
- GIT_BRANCH=${GIT_BRANCH:-}
networks:
- harb-network
restart: "no"
healthcheck:
test: ["CMD", "test", "-f", "/workspace/tmp/podman/contracts.env"]
@ -57,11 +67,11 @@ services:
context: .
dockerfile: containers/node-dev.Containerfile
entrypoint: ["/workspace/containers/ponder-dev-entrypoint.sh"]
user: "0:0"
volumes:
- .:/workspace:z
- .git:/workspace/.git:ro,z
- ./kraiken-lib/dist:/workspace/kraiken-lib/dist:ro,z
- ponder-node-modules:/workspace/services/ponder/node_modules
working_dir: /workspace
environment:
- CHOKIDAR_USEPOLLING=1
@ -71,6 +81,8 @@ services:
ports:
- "127.0.0.1:42069:42069"
restart: unless-stopped
networks:
- harb-network
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:42069/"]
interval: 5s
@ -83,11 +95,11 @@ services:
context: .
dockerfile: containers/node-dev.Containerfile
entrypoint: ["/workspace/containers/webapp-dev-entrypoint.sh"]
user: "0:0"
volumes:
- .:/workspace:z
- .git:/workspace/.git:ro,z
- ./kraiken-lib/dist:/workspace/kraiken-lib/dist:ro,z
- webapp-node-modules:/workspace/web-app/node_modules
working_dir: /workspace
environment:
- CHOKIDAR_USEPOLLING=1
@ -97,8 +109,10 @@ services:
ports:
- "127.0.0.1:5173:5173"
restart: unless-stopped
networks:
- harb-network
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:5173/app/"]
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:5173/"]
interval: 5s
retries: 6
start_period: 10s
@ -108,11 +122,11 @@ services:
context: .
dockerfile: containers/node-dev.Containerfile
entrypoint: ["/workspace/containers/landing-dev-entrypoint.sh"]
user: "0:0"
volumes:
- .:/workspace:z
- .git:/workspace/.git:ro,z
- ./kraiken-lib/dist:/workspace/kraiken-lib/dist:ro,z
- landing-node-modules:/workspace/landing/node_modules
working_dir: /workspace
environment:
- CHOKIDAR_USEPOLLING=1
@ -120,6 +134,8 @@ services:
expose:
- "5174"
restart: unless-stopped
networks:
- harb-network
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:5174/"]
interval: 5s
@ -131,18 +147,19 @@ services:
context: .
dockerfile: containers/node-dev.Containerfile
entrypoint: ["/workspace/containers/txn-bot-entrypoint.sh"]
user: "0:0"
volumes:
- .:/workspace:z
- .git:/workspace/.git:ro,z
- ./kraiken-lib/dist:/workspace/kraiken-lib/dist:ro,z
- txn-node-modules:/workspace/services/txnBot/node_modules
- kraiken-node-modules:/workspace/kraiken-lib/node_modules
working_dir: /workspace
environment:
- GIT_BRANCH=${GIT_BRANCH:-}
expose:
- "43069"
restart: unless-stopped
networks:
- harb-network
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:43069/status"]
interval: 5s
@ -156,6 +173,8 @@ services:
ports:
- "0.0.0.0:8081:80"
restart: unless-stopped
networks:
- harb-network
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:80"]
interval: 2s
@ -164,8 +183,3 @@ services:
volumes:
postgres-data:
webapp-node-modules:
landing-node-modules:
ponder-node-modules:
txn-node-modules:
kraiken-node-modules: