-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (54 loc) · 1.44 KB
/
docker-compose.yml
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
version: '3'
services:
dendritic:
build:
context: .
args:
TARGETARCH: amd
dockerfile: 'compose/python/Dockerfile'
image: dendritic
# depends_on: # seems problematic with tensorboard
# - tensorboard
# - celery
deploy: &gpus
resources:
reservations:
devices:
- capabilities: [gpu]
# env_file:
# - ./.env
volumes: &volumes
- ./src:/app/src
- ./tests:/app/tests
- ./pretrained:/pretrained
- ./data:/data
- ./data/xml:/data/xml
- ./data/text:/data/text
- ./data/json:/data/json
- ./log:/log
- ./notebooks:/app/notebooks
- vs_server:/root/.vscode-server
- cache:/root/.cache # general cache
- dataset_cache:/dataset_cache # this is a separate cache for huggingface datasets; set in config.datest_cache
- runs:/runs # this is for tensorboard
working_dir: /app
ports:
- 8885:8888 # this allows to run jupyter notebook on --port=8888
command: ["jupyter-lab", "--port=8888", "--ip=0.0.0.0", "--allow-root", "--allow_origin='*'", "--NotebookApp.allow_origin='*'"]
tensorboard:
# build:
# context: .
# dockerfile: 'compose/python/Dockerfile-mac'
image: dendritic
# deploy: *gpus
ports:
- 6007:6007
volumes:
- runs:/runs
working_dir: /app
command: tensorboard --logdir /runs --port 6007 --bind_all
volumes:
vs_server:
cache:
dataset_cache:
runs: