test db - also testing pre-commit hooks
This commit is contained in:
20
collector/docker-compose.yaml
Normal file
20
collector/docker-compose.yaml
Normal 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
|
||||
Reference in New Issue
Block a user