-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
72 lines (66 loc) · 1.23 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
---
version: "2"
services:
data:
volumes:
# public media for nginx & django
- ./public/static:/static
- ./public/media:/media
# persist data
- ./data/postgresql:/var/lib/postgresql/data
- ./data/elasticsearch:/usr/share/elasticsearch/data
redis:
image: redis
elasticsearch:
environment:
# server memory dependent
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
# - discovery.type="single-node"
depends_on:
- data
volumes_from:
- data
logstash:
ports:
- "127.0.0.1:8012:12201/udp"
depends_on:
- elasticsearch
links:
- elasticsearch
kibana:
ports:
- "127.0.0.1:8056:5601"
depends_on:
- elasticsearch
links:
- elasticsearch
django:
depends_on:
- data
- redis
- elasticsearch
- logstash
volumes_from:
- data
links:
- redis
- elasticsearch
- logstash
nginx:
depends_on:
- data
- elasticsearch
- logstash
- django
ports:
- "127.0.0.1:8080:80"
logging:
driver: gelf
options:
gelf-address: udp://127.0.0.1:8012
tag: nginx
volumes_from:
- data
links:
- django
tty: true