-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (50 loc) · 1.44 KB
/
docker-compose.yml
File metadata and controls
63 lines (50 loc) · 1.44 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
version: '3.8'
services:
robust-vision:
build:
context: .
dockerfile: Dockerfile
image: robust-vision:latest
container_name: robust-vision-dev
# Enable GPU support (requires nvidia-docker)
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
# Mount local directories for development
volumes:
- ./data:/app/data
- ./checkpoints:/app/checkpoints
- ./results:/app/results
- ./configs:/app/configs
# Environment variables
environment:
- JAX_PLATFORM_NAME=gpu
- PYTHONUNBUFFERED=1
# Expose TensorBoard port
ports:
- "6006:6006"
# Default command (can be overridden)
command: python scripts/train.py --config configs/baseline.yaml
# Keep container running for interactive use
# Uncomment the line below and comment out the command above
# command: tail -f /dev/null
# Restart policy
restart: unless-stopped
# Optional: TensorBoard service
tensorboard:
build:
context: .
dockerfile: Dockerfile
image: robust-vision:latest
container_name: robust-vision-tensorboard
volumes:
- ./logs:/app/logs
- ./checkpoints:/app/checkpoints
ports:
- "6007:6006"
command: tensorboard --logdir=/app/logs --host=0.0.0.0 --port=6006
restart: unless-stopped