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