-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
25 lines (25 loc) · 1.11 KB
/
docker-compose.yml
File metadata and controls
25 lines (25 loc) · 1.11 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
services:
edgs-app:
build: . # Instructs Docker Compose to build using the Dockerfile in the current directory
image: edgs-app # This is the name of the image you built
ports:
- "7862:7862" # For Gradio, if you still use it
- "8888:8888" # Map port 8888 for JupyterLab
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all # Use all available GPUs
capabilities: [gpu] # Request GPU capabilities
environment:
- NVIDIA_VISIBLE_DEVICES=all
volumes:
- ./data:/EDGS/data # Example: map a local 'data' folder to '/EDGS/data' in the container
- ./outputs:/EDGS/outputs # Example: map a local 'output' folder
- ./script:/EDGS/script # Example: map a local 'scripts' folder
- ./source:/EDGS/source # Example: map a local 'sources' folder
- ./configs:/EDGS/configs # Example: map a local 'config' folder
- ./notebooks:/EDGS/notebooks # Map a local 'notebooks' folder for JupyterLab
stdin_open: true # Keep STDIN open for interactive processes
tty: true # Allocate a TTY