2021-09-30 12:39:48 +00:00
|
|
|
services:
|
2022-06-07 09:16:47 +00:00
|
|
|
migrations:
|
|
|
|
restart: on-failure
|
|
|
|
depends_on:
|
2024-07-08 09:49:37 +00:00
|
|
|
ipld-eth-db:
|
|
|
|
condition: service_healthy
|
2023-03-21 17:43:29 +00:00
|
|
|
# Use local build
|
2023-06-01 12:07:37 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
2022-06-07 09:16:47 +00:00
|
|
|
# Use an existing image
|
2024-07-08 09:49:37 +00:00
|
|
|
image: cerc/ipld-eth-db:local
|
2022-06-07 09:16:47 +00:00
|
|
|
environment:
|
|
|
|
DATABASE_USER: "vdbm"
|
2023-03-13 13:35:58 +00:00
|
|
|
DATABASE_NAME: "cerc_testing"
|
2022-06-07 09:16:47 +00:00
|
|
|
DATABASE_PASSWORD: "password"
|
|
|
|
DATABASE_HOSTNAME: "ipld-eth-db"
|
|
|
|
DATABASE_PORT: 5432
|
|
|
|
|
2021-09-30 12:39:48 +00:00
|
|
|
ipld-eth-db:
|
2022-06-07 09:16:47 +00:00
|
|
|
image: timescale/timescaledb:latest-pg14
|
2021-09-30 12:39:48 +00:00
|
|
|
restart: always
|
2022-06-07 09:16:47 +00:00
|
|
|
command: ["postgres", "-c", "log_statement=all"]
|
2021-09-30 12:39:48 +00:00
|
|
|
environment:
|
|
|
|
POSTGRES_USER: "vdbm"
|
2023-03-13 13:35:58 +00:00
|
|
|
POSTGRES_DB: "cerc_testing"
|
2021-09-30 12:39:48 +00:00
|
|
|
POSTGRES_PASSWORD: "password"
|
|
|
|
ports:
|
2022-06-07 09:16:47 +00:00
|
|
|
- "127.0.0.1:8077:5432"
|
2024-07-08 09:49:37 +00:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "pg_isready", "-U", "vdbm"]
|
|
|
|
interval: 2s
|
|
|
|
timeout: 1s
|
|
|
|
retries: 3
|