2023-06-21 23:25:27 +00:00
|
|
|
# Containers to run backing DB for unit testing
|
2022-01-20 13:22:01 +00:00
|
|
|
|
|
|
|
services:
|
2022-05-23 14:13:09 +00:00
|
|
|
migrations:
|
|
|
|
restart: on-failure
|
|
|
|
depends_on:
|
|
|
|
- ipld-eth-db
|
2024-07-24 08:27:54 +00:00
|
|
|
image: git.vdb.to/cerc-io/ipld-eth-db/ipld-eth-db:v5.3.0-alpha
|
2022-05-23 14:13:09 +00:00
|
|
|
environment:
|
|
|
|
DATABASE_USER: "vdbm"
|
2023-06-21 23:25:27 +00:00
|
|
|
DATABASE_NAME: "cerc_testing"
|
2022-05-23 14:13:09 +00:00
|
|
|
DATABASE_PASSWORD: "password"
|
|
|
|
DATABASE_HOSTNAME: "ipld-eth-db"
|
|
|
|
DATABASE_PORT: 5432
|
|
|
|
|
2022-01-20 13:22:01 +00:00
|
|
|
ipld-eth-db:
|
2023-06-21 23:25:27 +00:00
|
|
|
container_name: test-ipld-eth-db
|
2022-05-23 14:13:09 +00:00
|
|
|
image: timescale/timescaledb:latest-pg14
|
2022-01-20 13:22:01 +00:00
|
|
|
restart: always
|
2022-05-23 14:13:09 +00:00
|
|
|
command: ["postgres", "-c", "log_statement=all"]
|
2022-01-20 13:22:01 +00:00
|
|
|
environment:
|
|
|
|
POSTGRES_USER: "vdbm"
|
2023-06-21 23:25:27 +00:00
|
|
|
POSTGRES_DB: "cerc_testing"
|
2022-01-20 13:22:01 +00:00
|
|
|
POSTGRES_PASSWORD: "password"
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:8077:5432"
|