---
services:
database:
image: postgres:18-alpine
environment:
POSTGRES_DB: plex_playlist
POSTGRES_USER: plex_user
POSTGRES_PASSWORD: ${DB_PASSWORD:-plex_password}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U plex_user -d plex_playlist"]
interval: 5s
timeout: 3s
retries: 12
backend:
image: ${DEPLOYABLE_BACKEND_IMAGE:-plex-playlist-backend:local}
DATABASE_URL: ${DB_URL:-postgresql://plex_user:plex_password@database:5432/plex_playlist}
ENVIRONMENT: production
depends_on:
condition: service_healthy