-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (43 loc) · 1.24 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
version: "2.1"
services:
redis:
image: redis
ports:
- "6379:6379"
postgres:
restart: always
image: sameersbn/postgresql:9.6-2
ports:
- "5432:5432"
environment:
- DEBUG=true
- DB_USER=thanqueue
- DB_PASS=thanqueue
- DB_NAME=thanqueue
volumes:
- ./data/postgres:/var/lib/postgresql
elasticsearch:
hostname: elastic
domainname: elk-local
image: elasticsearch:5.6.4
ports:
- "9200:9200"
- "9300:9300"
environment:
- ES_JAVA_OPTS=-Xms1G -Xmx1G
volumes:
- $PWD/elasticsearch.yml:/usr/share/elasticsearch/config/elasticearch.yml
- ./data/elasticsearch:/data
kibana:
hostname: kibana
domainname: elk-local
image: kibana:latest
ports:
- "5601:5601"
logstash:
hostname: logstash
domainname: elk-local
command: logstash -e 'input { stdin { } http { port => 8080 } } output { elasticsearch { hosts => [ 'elasticsearch' ] index => "elk-data-%{+YYYY.MM.dd}" } stdout { } }'
image: logstash:latest
ports:
- "8080:8080"