Initial commit.

Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
This commit is contained in:
2025-10-18 09:14:10 -04:00
commit 9c4a8d96bc
12 changed files with 570 additions and 0 deletions

44
compose.yml Normal file
View File

@@ -0,0 +1,44 @@
services:
database:
image: postgres:16-alpine
environment:
POSTGRES_DB: plex_playlist
POSTGRES_USER: plex_user
POSTGRES_PASSWORD: plex_password
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U plex_user -d plex_playlist"]
interval: 10s
timeout: 5s
retries: 5
backend:
build:
context: .
dockerfile: Dockerfile.backend
environment:
DATABASE_URL: postgresql://plex_user:plex_password@database:5432/plex_playlist
ENVIRONMENT: production
ports:
- "8000:8000"
depends_on:
database:
condition: service_healthy
restart: unless-stopped
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
target: production
ports:
- "80:80"
depends_on:
- backend
restart: unless-stopped
volumes:
postgres_data: