forked from chaklam-silpasuwanchai/Python-for-Data-Science
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
28 lines (28 loc) · 800 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
28 lines (28 loc) · 800 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
version: '3.9'
services:
python:
image: python
build:
context: .
dockerfile: .Dockerfile
volumes:
- ./:/root/projects
environment:
# `pipenv` will create an environment in the working directory
- PIPENV_VENV_IN_PROJECT=1
deploy:
resources:
limits:
# Limit is the maximun resource the container can have.
# number of cores this container can use (can be 0.5 means half core)
cpus: '4'
# maximun RAM this container can use
memory: '16G'
reservations:
# Reserves is a minimun resource the container will always have.
# cpus: '4'
# memory: '4G'
devices:
- driver: nvidia
count: 1
capabilities: [gpu]