ticket-pimp/compose.yaml

27 lines
621 B
YAML

services:
ticket-pimp:
container_name: pimp
image: naudachu/ticket-pimp
ports:
- "8080:8080"
depends_on:
postgres:
condition: service_healthy
postgres:
container_name: db
image: "postgres:16.1-alpine3.18"
environment:
POSTGRES_DB: "tickets"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
volumes:
- db-data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-d", "tickets", "-U", "postgres" ]
interval: 10s
timeout: 5s
retries: 5
volume:
db-data: