2022-06-15 07:21:26 +00:00
|
|
|
services:
|
|
|
|
migrations:
|
|
|
|
restart: on-failure
|
|
|
|
depends_on:
|
|
|
|
- ipld-eth-db
|
2024-07-09 09:50:26 +00:00
|
|
|
image: git.vdb.to/cerc-io/ipld-eth-db/ipld-eth-db:v5.3.0-alpha
|
2022-06-15 07:21:26 +00:00
|
|
|
environment:
|
|
|
|
DATABASE_USER: "vdbm"
|
2023-05-10 18:11:42 +00:00
|
|
|
DATABASE_NAME: "cerc_testing"
|
2022-06-15 07:21:26 +00:00
|
|
|
DATABASE_PASSWORD: "password"
|
|
|
|
DATABASE_HOSTNAME: "ipld-eth-db"
|
|
|
|
DATABASE_PORT: 5432
|
|
|
|
|
|
|
|
ipld-eth-db:
|
|
|
|
image: timescale/timescaledb:latest-pg14
|
|
|
|
restart: always
|
|
|
|
command: ["postgres", "-c", "log_statement=all"]
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: "vdbm"
|
2023-05-10 18:11:42 +00:00
|
|
|
POSTGRES_DB: "cerc_testing"
|
2022-06-15 07:21:26 +00:00
|
|
|
POSTGRES_PASSWORD: "password"
|
|
|
|
ports:
|
2023-09-29 18:43:26 +00:00
|
|
|
- 0.0.0.0:8077:5432
|
2022-06-15 07:21:26 +00:00
|
|
|
volumes:
|
|
|
|
- /tmp:/tmp
|
2024-07-09 09:50:26 +00:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "pg_isready", "-U", "vdbm"]
|
|
|
|
interval: 2s
|
|
|
|
timeout: 1s
|
|
|
|
retries: 3
|