-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
45 lines (43 loc) · 1.01 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
db:
image: postgres
ports:
- "5432"
web:
build: .
command: >
/bin/bash -c '
sleep 3 &&
python3 manage.py migrate &&
./with_host.sh python3 manage.py runserver 0.0.0.0:8071'
volumes:
- .:/src
environment:
DEBUG: 'True'
NODE_ENV: 'development'
PORT: 8071
COVERAGE_DIR: htmlcov
DATABASE_URL: postgres://postgres@db:5432/postgres
SGA_LTI_USE_WEBPACK_DEV_SERVER: 'True'
SGA_LTI_SECURE_SSL_REDIRECT: 'False'
SGA_LTI_DB_DISABLE_SSL: 'True'
env_file: .env
ports:
- "8071:8071"
links:
- db
watch:
image: sga_lti_web
command: >
/bin/bash -c '
npm cache clean &&
npm install --no-bin-links &&
npm rebuild node-sass &&
echo Finished npm install &&
node ./node_modules/webpack-dev-server/bin/webpack-dev-server.js --config webpack.config.dev.js -d --content-base ./static --host 0.0.0.0 --port 8072 --progress --inline --hot'
ports:
- "8072:8072"
volumes:
- .:/src
env_file: .env
environment:
NODE_ENV: 'development'