test db - also testing pre-commit hooks

This commit is contained in:
2026-05-07 20:42:03 -07:00
parent c230d4259f
commit 8a8eb88ced

View File

@@ -0,0 +1,20 @@
version: '3.8'
services:
db-test:
build:
context: ./db
dockerfile: Dockerfile
container_name: dev_collector_postgres
# Goes without saying these are purely for testing things locally
environment:
- POSTGRES_DB=collector_db
- POSTGRES_USER=collector_user
- POSTGRES_PASSWORD=collector_dev_sample123
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U collector_user -d collector_db"]
interval: 5s
timeout: 5s
retries: 5