-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
141 lines (137 loc) · 3.07 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
version: '3'
services:
# VS code in browser
# IDE for development running in docker and
# accessed in browser
vscode:
build:
context: ./Dockerfiles
dockerfile: Dockerfile.vscode
container_name: vscode
image: vscode:latest
ports:
- "8080:8080"
volumes:
- vscode:/home/coder/.local/share/code-server
- repo:/DRL4RESTRepo
- ${VOL_DIR}/.gitconfig:/home/coder/.gitconfig
command: ["--auth", "none", "/DRL4RESTRepo"]
# apigenerator downloads the ready-made api generator
# from the openapitools
apigenerator:
image: openapitools/openapi-generator-cli:latest
volumes:
- repo:/DRL4RESTRepo
- log:${APP_ROOT}/log
- src:${APP_ROOT}/src
- scripts:${APP_ROOT}/scripts
stdin_open: true
tty: true
# rl-gym
rlgym:
build:
context: ./Dockerfiles
dockerfile: Dockerfile.rlgym
container_name: rlgym
image: rlgym:latest
ports:
- "8888:8888"
volumes:
- log:${APP_ROOT}/log
- src:${APP_ROOT}/src
- scripts:${APP_ROOT}/scripts
# python
pyclient:
build:
context: ./Dockerfiles
dockerfile: Dockerfile.python3
container_name: pyclient
image: python3:latest
volumes:
- log:${APP_ROOT}/log
- src:${APP_ROOT}/src
- scripts:${APP_ROOT}/scripts
- openapi:${APP_ROOT}/openapi
stdin_open: true
tty: true
# python
pyserver:
build:
context: ./Dockerfiles
dockerfile: Dockerfile.python3
container_name: pyserver
image: python3:latest
ports: # HOST:CONTAINER
- "8000:8080"
volumes:
- log:${APP_ROOT}/log
- src:${APP_ROOT}/src
- scripts:${APP_ROOT}/scripts
- openapi:${APP_ROOT}/openapi
stdin_open: true
tty: true
# jupyter scipy docker image
jupyscipy:
build:
context: ./Dockerfiles
dockerfile: Dockerfile.jupyscipy
container_name: jupyscipy
image: jupyscipy:latest
ports: # HOST:CONTAINER
- "8008:8888"
environment:
- JUPYTER_ENABLE_LAB=yes
volumes:
- log:${APP_ROOT}/log
- src:${APP_ROOT}/src
- scripts:${APP_ROOT}/scripts
- openapi:${APP_ROOT}/openapi
- notebooks:/home/jovyan/work
command: ["start.sh", "jupyter", "lab", "--LabApp.token=''"]
#
# Volume definition
# Note the "ipc" volume for sharing UNIX sockets.
#
volumes:
repo:
driver: local
driver_opts:
type: none
device: ${VOL_DIR}/
o: bind
vscode:
driver: local
driver_opts:
type: none
device: ${VOL_DIR}/vscode
o: bind
log:
driver: local
driver_opts:
type: none
device: ${VOL_DIR}/log
o: bind
src:
driver: local
driver_opts:
type: none
device: ${VOL_DIR}/src
o: bind
scripts:
driver: local
driver_opts:
type: none
device: ${VOL_DIR}/scripts
o: bind
openapi:
driver: local
driver_opts:
type: none
device: ${VOL_DIR}/openapi
o: bind
notebooks:
driver: local
driver_opts:
type: none
device: ${VOL_DIR}/notebooks
o: bind