21 lines
523 B
YAML
21 lines
523 B
YAML
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
|