Files
pg-instance-handler/docker-compose.yml
JeremyLARDENOIS 9108981868
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is passing
feat: Initial commit
2026-03-01 14:53:04 +01:00

25 lines
573 B
YAML

services:
postgres:
image: postgres:15
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
pg-instance-handler:
build:
context: .
dockerfile: Dockerfile
depends_on:
postgres:
condition: service_healthy
environment:
DATABASE_URL: postgres://postgres:postgres@postgres:5432/postgres
volumes:
- ./database.yaml:/database.yaml:ro