-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
31 lines (28 loc) · 1.05 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
31 lines (28 loc) · 1.05 KB
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
# Development configuration with volume mounts for live code reloading
# Usage:
# Option 1 (recommended): docker compose -f docker-compose.yml -f docker/docker-compose.dev.yml up
# Option 2 (auto-loaded override): cp docker/docker-compose.dev.yml docker-compose.override.yml && docker compose up
version: '3.8'
services:
api:
volumes:
# Mount source code for live reload
- ..:/app
# Exclude Python bytecode and build artifacts to avoid permission issues
- /app/__pycache__
- /app/.pytest_cache
- /app/*.egg-info
# Match host user to avoid permission issues (Linux/Mac)
# For Windows, you may want to comment this out
user: "${UID:-1000}:${GID:-1000}"
worker:
volumes:
# Mount source code for live reload
- ..:/app
# Exclude Python bytecode and build artifacts
- /app/__pycache__
- /app/.pytest_cache
- /app/*.egg-info
# Match host user to avoid permission issues (Linux/Mac)
# For Windows, you may want to comment this out
user: "${UID:-1000}:${GID:-1000}"