-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (39 loc) · 1.02 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
version: "3.8"
services:
fastrl_build:
build:
dockerfile: fastrl.Dockerfile
context: .
image: josiahls/fastrl-dev:latest
profiles: ["build"]
fastrl: &fastrl
restart: unless-stopped
working_dir: /home/fastrl_user/fastrl
image: josiahls/fastrl-dev:latest
deploy:
resources:
reservations:
devices:
- capabilities:
- gpu
logging:
driver: json-file
options:
max-size: 50m
stdin_open: true
tty: true
shm_size: 16000000000
volumes:
- .:/home/fastrl_user/fastrl/
- ~/.ssh:/home/fastrl_user/.ssh:rw
network_mode: host # for GitHub Codespaces https://github.com/features/codespaces/
dep_watcher:
<<: *fastrl
command: watchmedo shell-command --command fastrl_make_requirements --pattern *.ini --recursive --drop
quarto:
<<: *fastrl
restart: unless-stopped
working_dir: /home/fastrl_user/fastrl/nbs/_docs
volumes:
- .:/home/fastrl_user/fastrl/
command: nbdev_preview