-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (44 loc) · 1.24 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
x-volumes: &dotfiles_and_app_dir
- "${VIM_RC_FPATH}:/root/.vimrc"
- "${VIM_CONFIG_DIR}:/root/.vim/custom/"
- "${PLUGINS_DIR}:/root/.vim/plugged"
- "${HOST_APP_DIR}:/root/workspace"
- "${BASH_HISTORY_FPATH}:/root/.bash_history"
x-build-args: &build-args
args:
BASE_IMAGE: ${BASE_IMAGE}
DEV_IMAGE_NAME: ${DEV_IMAGE_NAME}
DOTFILES_BASENAME: ${DOTFILES_BASENAME}
services:
jupyter:
build:
context: ..
dockerfile: dev-env-setup/Dockerfile
cache_from:
- rohailt/${DEV_IMAGE_NAME}-jupyter
cache_to:
- type=registry,ref=rohailt/${DEV_IMAGE_NAME}-jupyter
<<: *build-args
target: jupyter
image: rohailt/${DEV_IMAGE_NAME}-jupyter
ports:
- "8888:8888"
stdin_open: true
tty: true
working_dir: /root/workspace
volumes: *dotfiles_and_app_dir
vim:
build:
context: ..
dockerfile: dev-env-setup/Dockerfile
<<: *build-args
cache_from:
- rohailt/${DEV_IMAGE_NAME}-vim_plugins
cache_to:
- type=registry,ref=rohailt/${DEV_IMAGE_NAME}-vim_plugins
target: vim_plugins
image: rohailt/${DEV_IMAGE_NAME}-vim_plugins
working_dir: /root/workspace
stdin_open: true
tty: true
volumes: *dotfiles_and_app_dir