stack-orchestrator/compose/docker-compose-db.yml

32 lines
737 B
YAML
Raw Normal View History

2022-08-14 04:30:12 +00:00
version: "3.2"
2022-08-14 04:30:12 +00:00
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
2022-08-14 04:30:12 +00:00
ipld-eth-db:
image: timescale/timescaledb:latest-pg14
2022-08-14 04:30:12 +00:00
restart: always
environment:
POSTGRES_USER: "vdbm"
2022-08-23 22:02:38 +00:00
POSTGRES_DB: "cerc_testing"
2022-08-14 04:30:12 +00:00
POSTGRES_PASSWORD: "password"
healthcheck:
test: ["CMD", "nc", "-v", "localhost", "5432"]
interval: 30s
timeout: 10s
retries: 10
start_period: 3s
2022-08-14 04:30:12 +00:00
ports:
- "127.0.0.1:8077:5432"