Files
pg-instance-handler/docker-compose.yml
JeremyLARDENOIS 4557231256
Some checks failed
continuous-integration/drone/push Build is failing
feat: dockerize application
2026-01-09 14:34:27 +01:00

27 lines
602 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
ports:
- "8080:8080"
volumes:
- ./database.txt:/database.txt:ro