migrate/podman-to-docker (#92)
podman to docker Co-authored-by: openhands <openhands@all-hands.dev> Reviewed-on: https://codeberg.org/johba/harb/pulls/92
This commit is contained in:
parent
c2720c35a5
commit
5d71753086
13 changed files with 211 additions and 100 deletions
|
|
@ -1,186 +0,0 @@
|
|||
version: "3.8"
|
||||
|
||||
networks:
|
||||
harb-network:
|
||||
driver: bridge
|
||||
|
||||
services:
|
||||
anvil:
|
||||
image: ghcr.io/foundry-rs/foundry:latest
|
||||
command: ["/workspace/containers/anvil-entrypoint.sh"]
|
||||
volumes:
|
||||
- .:/workspace:z
|
||||
expose:
|
||||
- "8545"
|
||||
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
|
||||
timeout: 1s
|
||||
retries: 5
|
||||
start_period: 5s
|
||||
|
||||
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
|
||||
networks:
|
||||
- harb-network
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U ponder"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
bootstrap:
|
||||
image: ghcr.io/foundry-rs/foundry:latest
|
||||
user: "0:0"
|
||||
command: ["/workspace/containers/bootstrap.sh"]
|
||||
volumes:
|
||||
- .:/workspace:z
|
||||
- .git:/workspace/.git:ro,z
|
||||
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"]
|
||||
interval: 5s
|
||||
retries: 18
|
||||
start_period: 10s
|
||||
|
||||
ponder:
|
||||
build:
|
||||
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
|
||||
working_dir: /workspace
|
||||
environment:
|
||||
- CHOKIDAR_USEPOLLING=1
|
||||
- GIT_BRANCH=${GIT_BRANCH:-}
|
||||
- PONDER_RPC_TIMEOUT=${PONDER_RPC_TIMEOUT:-20000}
|
||||
expose:
|
||||
- "42069"
|
||||
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
|
||||
timeout: 3s
|
||||
retries: 12
|
||||
start_period: 20s
|
||||
|
||||
webapp:
|
||||
build:
|
||||
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
|
||||
working_dir: /workspace
|
||||
environment:
|
||||
- CHOKIDAR_USEPOLLING=1
|
||||
- GIT_BRANCH=${GIT_BRANCH:-}
|
||||
expose:
|
||||
- "5173"
|
||||
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/"]
|
||||
interval: 5s
|
||||
retries: 6
|
||||
start_period: 10s
|
||||
|
||||
landing:
|
||||
build:
|
||||
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
|
||||
working_dir: /workspace
|
||||
environment:
|
||||
- CHOKIDAR_USEPOLLING=1
|
||||
- GIT_BRANCH=${GIT_BRANCH:-}
|
||||
expose:
|
||||
- "5174"
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- harb-network
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:5174/"]
|
||||
interval: 5s
|
||||
retries: 6
|
||||
start_period: 10s
|
||||
|
||||
txn-bot:
|
||||
build:
|
||||
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
|
||||
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
|
||||
retries: 4
|
||||
start_period: 10s
|
||||
|
||||
caddy:
|
||||
image: docker.io/library/caddy:2.8
|
||||
volumes:
|
||||
- ./containers/Caddyfile:/etc/caddy/Caddyfile:z
|
||||
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
|
||||
retries: 3
|
||||
start_period: 2s
|
||||
|
||||
volumes:
|
||||
postgres-data:
|
||||
Loading…
Add table
Add a link
Reference in a new issue