forked from math4youbyusgroupillinois/ava
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (49 loc) · 1.26 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
##
## IMPORTANT NOTE
##
## This compose file is configured for bootstrapping AVA developers
## quickly. It is not appropriate for production or staging deployments
## of AVA.
##
## This configuration uses hard-coded passwords, Django in DEBUG mode,
## and the Django integrated development server, none of these things
## are appropriate for a production environment.
## Support Servers/Services
db:
image: postgres:9.5
environment:
## This password is obviously committed to version control. It would be
## ill-advised to use it on any accessible deployment (seriously).
- POSTGRES_PASSWORD=T7mKAQOhMmo6hv0zOmm7
redis:
image: redis:2.8
## AVA Application Server
web:
build: .
command: bin/in-container/run-devserver.sh
volumes:
- .:/code
ports:
- "8000:8000"
links:
- db
- redis
environment:
- DJANGO_SETTINGS_MODULE=ava_core.settings.base
- USE_MOCK_LDAP=true
env_file:
- secrets.env
## AVA Asynchronous Task Worker
worker:
build: .
command: bin/in-container/run-celery-worker.sh
volumes:
- .:/code
links:
- db
- redis
environment:
- DJANGO_SETTINGS_MODULE=ava_core.settings.base
- C_FORCE_ROOT="true" ## Get this the flip out of here DO NOT USE IN PRODUCTION
env_file:
- secrets.env