City-portal/compose.yml
Zeph Levy df7d4f3507 Prepare for an eventual frontend
Move the backend code into a backend/ directory, and create a frontend/
directory containing an empty sveltekit project.
2025-12-16 19:48:22 +01:00

30 lines
603 B
YAML

services:
postgres:
image: docker.io/library/postgres:alpine
container_name: postgres
env_file:
- backend/.env
ports:
- "5432:5432"
volumes:
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql:Z
- postgres_data:/var/lib/postgresql/data:Z
restart: unless-stopped
frontend:
image: oven/bun:latest
container_name: frontend
working_dir: /app
command: bun run dev --host
ports:
- "5173:5173"
volumes:
- ./frontend:/app:Z
# env_file:
# - frontend/.env
restart: unless-stopped
volumes:
postgres_data: