-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
100 lines (90 loc) · 1.8 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
version: '3.4'
x-build: &build
context: .
dockerfile: Dockerfile
x-shared: &common
build:
context: .
dockerfile: Dockerfile
args:
- GITHUB_USER=${GITHUB_USER}
- GITHUB_TOKEN=${GITHUB_TOKEN}
- DEV_SOURCE=${DEV_SOURCE}
volumes:
- .:/src/propose
- ./notebooks:/notebooks
- ./tests:/tests
env_file:
- .env
services:
base:
image: cgnf
<<: *common
volumes:
- .:/src/propose
- ./scripts:/scripts
- ./data:/data
python:
&python
image: cgnf
entrypoint: [ "python" ]
train:
image: cgnf
volumes:
- ./scripts:/scripts
- ./data:/data
- ./experiments:/experiments
env_file:
- .env
entrypoint: [ "python", "/scripts/train.py" ]
eval:
image: cgnf
volumes:
- ./scripts:/scripts
- ./data:/data
- ./experiments:/experiments
env_file:
- .env
entrypoint: [ "python", "/scripts/eval.py" ]
sweep:
image: cgnf
volumes:
- ./scripts:/scripts
- ./data:/data
- ./sweeps:/sweeps
env_file:
- .env
entrypoint: [ "python", "/scripts/sweep.py" ]
pendulum:
image: cgnf
volumes:
- ./notebooks:/notebooks
- ./data:/data
- ./sweeps:/sweeps
env_file:
- .env
entrypoint: [ "python", "/notebooks/toy_problem/test.py" ]
demo:
image: cgnf
<<: *common
volumes:
- ./scripts:/scripts
- ./data:/data
entrypoint: [ "python", "/scripts/demo.py" ]
ports:
- "7860:7860"
preprocess:
image: cgnf
volumes:
- ./scripts:/scripts
- ./data:/data
env_file:
- .env
entrypoint: [ "python", "/scripts/preprocess.py" ]
notebook_server:
<<: *common
volumes:
- ./notebooks:/notebooks
- ./data:/data
ports:
- "8888:8888"