-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
28 lines (28 loc) · 831 Bytes
/
docker-compose.yaml
File metadata and controls
28 lines (28 loc) · 831 Bytes
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
# compose.yaml
services:
server:
image: python:3.10-slim
container_name: server
restart: unless-stopped
environment:
- PYTHONUNBUFFERED=1
- DOCKER_HOST=unix:///var/run/docker.sock
- DOCKER_IMAGE_ID=0e8811ef3c92
- DATA_DIR=/mnt/lamas/data
- DOCKER_RUN="docker run --runtime=nvidia --shm-size=26G --gpus all -v /mnt/lamas:/mnt/lamas -v output_volume:/output -e DATA_DIR=$DATA_DIR -e MPLCONFIGDIR=$DATA_DIR/matplotlib_config -e OUTPUT_DIR=/output $DOCKER_IMAGE_ID"
ports:
- 5000:5000
networks:
- reseau
volumes:
- output_volume:/output
- /mnt/lamas:/mnt/lamas
- /var/run/docker.sock:/var/run/docker.sock
- ./python:/app
command: [ "/app/server.sh" ]
volumes:
output_volume:
external: true
networks:
reseau:
driver: bridge