This repository has been archived by the owner on Jan 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
84 lines (79 loc) · 1.59 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
db:
image: postgres
ports:
- "5432"
redis:
image: redis
ports:
- "6379"
elastic:
image: elasticsearch
command: elasticsearch -Des.network.host=0.0.0.0
ports:
- "9200"
stats:
image: kamon/grafana_graphite
ports:
- "8125/udp:8125/udp"
- "8071:80"
web:
build: .
mem_limit: 384m
command: >
/bin/bash -c '
sleep 3 &&
npm install --production --no-bin-links &&
python manage.py migrate &&
python manage.py runserver 0.0.0.0:8070'
volumes:
- .:/src
- /tmp
environment:
DEBUG: 'True'
LORE_LOG_LEVEL: DEBUG
DJANGO_LOG_LEVEL: INFO
PORT: 8070
DATABASE_URL: postgres://postgres@db:5432/postgres
LORE_DB_DISABLE_SSL: 'True'
ALLOWED_HOSTS:
LORE_USE_CAS:
LORE_ADMIN_EMAIL:
LORE_CAS_URL:
LORE_GOOGLE_ANALYTICS_ID:
LORE_STATSD_HOST: stats
CELERY_ALWAYS_EAGER: 'False'
CELERY_RESULT_BACKEND: redis://redis:6379/4
BROKER_URL: redis://redis:6379/4
HAYSTACK_URL: elastic:9200
env_file: .env
ports:
- "8070:8070"
links:
- db
- redis
- elastic
- stats
celery:
image: lore_web
mem_limit: 384m
command: >
/bin/bash -c '
sleep 3;
celery -A lore worker -l debug'
volumes_from:
- web
environment:
DEBUG: 'True'
LORE_LOG_LEVEL: DEBUG
LORE_DB_DISABLE_SSL: 'True'
LORE_STATSD_HOST: stats
DJANGO_LOG_LEVEL: INFO
DATABASE_URL: postgres://postgres@db:5432/postgres
BROKER_URL: redis://redis:6379/4
CELERY_RESULT_BACKEND: redis://redis:6379/4
HAYSTACK_URL: elastic:9200
links:
- db
- elastic
- redis
- stats