-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
36 lines (35 loc) · 929 Bytes
/
compose.dev.yaml
File metadata and controls
36 lines (35 loc) · 929 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Development overrides for compose.yaml
services:
api:
# Run as root in dev to handle host file permissions (any umask)
user: "${UID}:${GID}"
environment:
UV_CACHE_DIR: /tmp/uv-cache
volumes:
# Mount the entire app directory (minus venv) for hot-reload
- ./src/api:/app:z
- /app/.venv
command:
- /bin/bash
- -c
- |
uv run fastapi dev main.py --host 0.0.0.0 --port 8000
dev-ui:
build:
context: ./src/dev-ui
dockerfile: Dockerfile
target: builder
volumes:
# Mount source for live editing
- ./src/dev-ui:/app:z
# Preserve container's node_modules (don't overwrite with host)
- /app/node_modules
# Writable dirs for Nuxt dev server
- /app/.nuxt
- /app/.output
environment:
- HOST=0.0.0.0
command: ["pnpm", "run", "dev"]
ports:
- "3000:3000"
- "24678:24678"