1
0
stack-orchestrator/compose/docker-compose-db-sharding.yml

33 lines
790 B
YAML
Raw Normal View History

2022-08-12 17:32:40 +00:00
version: "3.2"
services:
migrations:
restart: on-failure
depends_on:
ipld-eth-db:
condition: service_healthy
2022-08-23 22:02:38 +00:00
image: cerc/ipld-eth-db:local
2022-08-12 17:32:40 +00:00
environment:
DATABASE_USER: "vdbm"
2022-08-23 22:02:38 +00:00
DATABASE_NAME: "cerc_testing"
2022-08-12 17:32:40 +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"
2022-08-23 22:02:38 +00:00
POSTGRES_DB: "cerc_testing"
2022-08-12 17:32:40 +00:00
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"