fix/podman-postgres-integration (#37)

resolves #25

Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: johba <johba@harb.eth>
Reviewed-on: https://codeberg.org/johba/harb/pulls/37
This commit is contained in:
johba 2025-10-01 20:26:49 +02:00
parent 8947ec11ca
commit b4c829e4d6
25 changed files with 187 additions and 144 deletions

View file

@ -2,28 +2,44 @@ version: "3.8"
services:
anvil:
build:
context: .
dockerfile: containers/foundry.Containerfile
image: ghcr.io/foundry-rs/foundry:latest
command: ["/workspace/containers/anvil-entrypoint.sh"]
volumes:
- .:/workspace:Z
- .:/workspace:z
expose:
- "8545"
restart: unless-stopped
postgres:
image: docker.io/library/postgres:16-alpine
environment:
- POSTGRES_USER=ponder
- POSTGRES_PASSWORD=ponder_local
- POSTGRES_DB=ponder_local
volumes:
- postgres-data:/var/lib/postgresql/data
expose:
- "5432"
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ponder"]
interval: 5s
timeout: 5s
retries: 5
bootstrap:
build:
context: .
dockerfile: containers/foundry.Containerfile
image: ghcr.io/foundry-rs/foundry:latest
user: "0:0"
command: ["/workspace/containers/bootstrap.sh"]
volumes:
- .:/workspace:Z
- .:/workspace:z
environment:
- ANVIL_RPC=http://anvil:8545
depends_on:
anvil:
condition: service_started
postgres:
condition: service_healthy
restart: "no"
ponder:
@ -38,7 +54,10 @@ services:
environment:
- CHOKIDAR_USEPOLLING=1
depends_on:
- anvil
anvil:
condition: service_started
postgres:
condition: service_healthy
expose:
- "42069"
restart: unless-stopped
@ -98,7 +117,7 @@ services:
caddy:
image: docker.io/library/caddy:2.8
volumes:
- ./containers/Caddyfile:/etc/caddy/Caddyfile:Z
- ./containers/Caddyfile:/etc/caddy/Caddyfile:z
ports:
- "0.0.0.0:8081:80"
depends_on:
@ -115,6 +134,7 @@ services:
restart: unless-stopped
volumes:
postgres-data:
webapp-node-modules:
landing-node-modules:
ponder-node-modules: