-
Notifications
You must be signed in to change notification settings - Fork 21
/
docker-compose.yml
52 lines (48 loc) · 1.43 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
version: "3"
services:
django:
image: python:3.6
volumes:
- .:/src
- venv:/src/venv
command: ["/src/tools/dev-django.sh", "0.0.0.0:8000"]
environment:
ADMIN_USERNAME: "${DJANGO_ADMIN_USERNAME}"
ADMIN_PASSWORD: "${DJANGO_ADMIN_PASSWORD}"
ADMIN_EMAIL: "${DJANGO_ADMIN_EMAIL}"
DATABASE_URL: "${DJANGO_DATABASE_URL}"
ALLOW_SIGNUP: "${DJANGO_ALLOW_SIGNUP}"
USE_MAILJET: "${DJANGO_USE_MAILJET}"
MAILJET_API_KEY: "${DJANGO_MAILJET_API_KEY}"
MAILJET_SECRET_KEY: "${DJANGO_MAILJET_SECRET_KEY}"
WEBPACK_ENVIRONMENT_PRODUCTION: "${WEBPACK_ENVIRONMENT_PRODUCTION}"
DJANGO_ENVIRONMENT_PRODUCTION: "${DJANGO_ENVIRONMENT_PRODUCTION}"
ports:
- 8000:8000
webpack:
image: node:8
volumes:
- .:/src
- node_modules:/src/src/server/static/node_modules
command: ["/src/tools/dev-webpack.sh"]
environment:
WEBPACK_ENVIRONMENT_PRODUCTION: "${WEBPACK_ENVIRONMENT_PRODUCTION}"
WEBPACK_HOST: "${WEBPACK_HOST}"
WEBPACK_PORT: "${WEBPACK_PORT}"
WEBPACK_POLL_MILLIS: "${WEBPACK_POLL_MILLIS}"
ports:
- 8080:8080
postgres:
image: postgres:9.6
environment:
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
POSTGRES_DB: "${POSTGRES_DB}"
PGDATA: ${PGDATA}
ports:
- 5432:5432
volumes:
- ./src/db:/var/lib/postgres/data
volumes:
node_modules:
venv: