Jotzy/compose.yaml
2026-01-06 12:51:40 +00:00

40 lines
857 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

version: "3.9"
services:
api:
build:
context: ./backend
ports:
- "8000:8000"
volumes:
- ./backend:/app # livecode sync for reload
# env_file: .env # optional, keep secrets out of repo
# depends_on:
# - db # if you have a DB service
ui:
build:
context: ./frontend
target: builder # use the builder stage for dev
command: npm run dev -- --host 0.0.0.0 --port 5173
ports:
- "5173:5173"
volumes:
- ./frontend:/app
environment:
- VITE_API_URL=http://localhost:8000
depends_on:
- api
# Example DB (Postgres) optional
# db:
# image: postgres:16-alpine
# environment:
# POSTGRES_USER: demo
# POSTGRES_PASSWORD: demo
# POSTGRES_DB: demo
# volumes:
# - pgdata:/var/lib/postgresql/data
# volumes:
# pgdata: