From 8a8eb88cedb470d2dfdfcb8e16cbb98ad2326bef Mon Sep 17 00:00:00 2001 From: shockrah Date: Thu, 7 May 2026 20:42:03 -0700 Subject: [PATCH] test db - also testing pre-commit hooks --- collector/docker-compose.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 collector/docker-compose.yaml diff --git a/collector/docker-compose.yaml b/collector/docker-compose.yaml new file mode 100644 index 0000000..1c61848 --- /dev/null +++ b/collector/docker-compose.yaml @@ -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