-
Notifications
You must be signed in to change notification settings - Fork 31
/
docker-compose.yml
55 lines (51 loc) · 1.08 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
version: "3.3"
services:
django:
build: .
command: ["runserver", "0.0.0.0:8000"]
stdin_open: true
tty: true
ports:
- "8000:8000"
volumes:
- .:/djedi-cms
- media-files:/media
environment:
- DJEDI_THEME=${DJEDI_THEME:-}
node:
build: ./djedi-react
command: ["npm", "start"]
ports:
- "3000:3000"
- "3001:3001"
volumes:
- ./djedi-react/:/code
- /code/node_modules
environment:
- DJEDI_REACT_DIR=${DJEDI_REACT_DIR:-}
- SERVER_BASE_URL=http://django:8000/djedi/api
# Piggy-backing on djedi-react’s image and node_modules to watch CoffeeScript
# and Less files.
coffee:
build: ./djedi-react
command: ["make", "coffee", "ARGS=--watch"]
volumes:
- .:/code
- /code/node_modules
less:
build: ./djedi-react
command:
[
"onchange",
"--initial",
"djedi/static/djedi/themes/**/*.less",
"--",
"make",
"less",
"--silent",
]
volumes:
- .:/code
- /code/node_modules
volumes:
media-files: