add ipld-eth-db
Some checks failed
Test fixturenet-plugeth / Test fixturenet-plugeth stack (push) Failing after 14m38s
Test Ethereum Fixturenet Stack / Run Ethereum Fixturenet stack test (push) Has been cancelled

This commit is contained in:
Roy Crihfield 2024-06-23 18:06:59 +08:00
parent 2e56cf9d18
commit 20b1b82a59
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,31 @@
version: "3.2"
services:
migrations:
restart: on-failure
depends_on:
ipld-eth-db:
condition: service_healthy
image: cerc/ipld-eth-db:local
environment:
DATABASE_USER: "vdbm"
DATABASE_NAME: "cerc_testing"
DATABASE_PASSWORD: "password"
DATABASE_HOSTNAME: "ipld-eth-db"
DATABASE_PORT: 5432
ipld-eth-db:
image: timescale/timescaledb:2.8.1-pg14
restart: always
environment:
POSTGRES_USER: "vdbm"
POSTGRES_DB: "cerc_testing"
POSTGRES_PASSWORD: "password"
healthcheck:
test: ["CMD", "nc", "-v", "localhost", "5432"]
interval: 30s
timeout: 10s
retries: 10
start_period: 3s
ports:
- "127.0.0.1:8077:5432"

View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Build cerc/ipld-eth-db
source ${CERC_CONTAINER_BASE_DIR}/build-base.sh
docker build -t cerc/ipld-eth-db:local ${build_command_args} ${CERC_REPO_BASE_DIR}/ipld-eth-db