-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·46 lines (39 loc) · 1.8 KB
/
docker-compose.yml
File metadata and controls
executable file
·46 lines (39 loc) · 1.8 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
services:
friendlysplat:
# Image name (can also be built from Dockerfile below)
image: friendlysplat:latest
build:
context: . # Build context: current directory
dockerfile: Dockerfile # Use this Dockerfile to build the image
container_name: friendlysplat_dev
shm_size: "8gb" # Increase shared memory to avoid PyTorch DataLoader crashes
deploy:
# GPU reservation for multi-node Docker Swarm / production deployment
# Note: This is ignored by `docker-compose up` on a single machine
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu, utility, compute]
# Enable NVIDIA GPU support
runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=all # Expose all GPUs to the container
- DEBIAN_FRONTEND=noninteractive
# Mount local directories to container for development and data persistence
volumes:
# Update volumes if your dataset or results use different directories
- ./data:/app/FriendlySplat/data # Local dataset directory
- ./outputs:/app/FriendlySplat/outputs # Directory to store results
- .:/app/FriendlySplat # Mount project code for hot-reload
# Map container ports to host (for viewer / web interface)
ports:
- "8080:8080" # Access viewer at http://localhost:8080
# Keep container interactive (useful for `docker-compose exec`)
tty: false
stdin_open: false
# Notes:
# - Adjust volume paths if your datasets or checkpoints are in different directories.
# - Expose additional ports if using other services or viewers.
# - Use `docker-compose up -d` for detached mode in production/development.