-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
35 lines (34 loc) · 994 Bytes
/
Copy pathdocker-compose.dev.yml
File metadata and controls
35 lines (34 loc) · 994 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
name: labelforge-dev
services:
labelforge:
# Stamp the dev build with the current commit so the footer shows e.g. v0.1.2-dev+8e32bb1.
# Usage: GIT_COMMIT=$(git rev-parse --short HEAD) docker compose -f docker-compose.dev.yml build
build:
context: .
args:
BUILD_CHANNEL: dev
GIT_COMMIT: ${GIT_COMMIT:-}
image: labelforge:dev
restart: "no"
env_file: .env
environment:
LOG_LEVEL: DEBUG
volumes:
# Bind-mount source for hot-reload. The editable pip install inside the
# image points to /app/backend/labelforge/, so this overlay takes effect
# immediately without rebuilding.
- ./backend:/app/backend
# Dev data directory — kept separate from any production volume.
- ./data:/data
ports:
- "8001:8000"
command:
- uvicorn
- labelforge.main:app
- --host
- "0.0.0.0"
- --port
- "8000"
- --reload
- --reload-dir
- /app/backend