From 20b1b82a5938c37935844666e3a4fedbd90a5e04 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Sun, 23 Jun 2024 18:06:59 +0800 Subject: [PATCH] add ipld-eth-db --- .../compose/docker-compose-ipld-eth-db.yml | 31 +++++++++++++++++++ .../container-build/cerc-ipld-eth-db/build.sh | 4 +++ 2 files changed, 35 insertions(+) create mode 100644 stack-orchestrator/compose/docker-compose-ipld-eth-db.yml create mode 100755 stack-orchestrator/container-build/cerc-ipld-eth-db/build.sh diff --git a/stack-orchestrator/compose/docker-compose-ipld-eth-db.yml b/stack-orchestrator/compose/docker-compose-ipld-eth-db.yml new file mode 100644 index 0000000..f437c66 --- /dev/null +++ b/stack-orchestrator/compose/docker-compose-ipld-eth-db.yml @@ -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" diff --git a/stack-orchestrator/container-build/cerc-ipld-eth-db/build.sh b/stack-orchestrator/container-build/cerc-ipld-eth-db/build.sh new file mode 100755 index 0000000..d454f3f --- /dev/null +++ b/stack-orchestrator/container-build/cerc-ipld-eth-db/build.sh @@ -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