-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.training.yml
More file actions
73 lines (69 loc) · 1.83 KB
/
docker-compose.training.yml
File metadata and controls
73 lines (69 loc) · 1.83 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Docker Compose for Training Environment
# Separate training container with GPU support
version: '3.8'
services:
dagnostics-training:
build:
context: .
dockerfile: Dockerfile.training
container_name: dagnostics-training
volumes:
# Mount data directories
- ./data:/app/data
- ./models:/app/models
- ./config:/app/config
- ./logs:/app/logs
# Mount source for development
- ./src:/app/src
environment:
- DAGNOSTICS_CONFIG=/app/config/config.yaml
- PYTHONPATH=/app/src
- CUDA_VISIBLE_DEVICES=0 # Use first GPU
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
command: >
bash -c "
echo 'DAGnostics Training Environment Ready' &&
echo 'Available commands:' &&
echo ' python -m dagnostics.training.dataset_generator' &&
echo ' python -m dagnostics.training.fine_tuner' &&
echo ' dagnostics training generate-dataset' &&
echo ' dagnostics training train-model' &&
tail -f /dev/null
"
networks:
- dagnostics-net
# Main DAGnostics service (no ML deps)
dagnostics-main:
build:
context: .
dockerfile: Dockerfile
container_name: dagnostics-main
ports:
- "8000:8000" # API
- "8080:8080" # Web UI
volumes:
- ./data:/app/data
- ./config:/app/config
- ./logs:/app/logs
- ./src:/app/src
environment:
- DAGNOSTICS_CONFIG=/app/config/config.yaml
- PYTHONPATH=/app/src
command: >
bash -c "
echo 'Starting DAGnostics Main Service...' &&
dagnostics daemon start
"
networks:
- dagnostics-net
depends_on:
- dagnostics-training
networks:
dagnostics-net:
driver: bridge