2019-02-23 10:59:49 +00:00
|
|
|
# vim: set ft=yaml:
|
|
|
|
# https://www.docker.elastic.co
|
2019-12-31 16:37:32 +00:00
|
|
|
---
|
|
|
|
version: '2.3'
|
2019-02-23 10:59:49 +00:00
|
|
|
|
|
|
|
services:
|
2019-02-23 11:02:13 +00:00
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------------------------
|
|
|
|
# ELK Stack
|
|
|
|
# -----------------------------------------------------------------------------------------------
|
2019-02-23 10:59:49 +00:00
|
|
|
elastic:
|
|
|
|
image: docker.elastic.co/elasticsearch/elasticsearch-oss:${ELK_SERVER:-6.6.1}
|
|
|
|
hostname: elastic
|
|
|
|
ports:
|
|
|
|
- "${LOCAL_LISTEN_ADDR}${HOST_PORT_ELK_ELASTIC:-9200}:9200"
|
|
|
|
networks:
|
|
|
|
app_net:
|
|
|
|
ipv4_address: 172.16.238.240
|
|
|
|
environment:
|
|
|
|
- TZ=${TIMEZONE:-UTC}
|
|
|
|
- discovery.type=single-node
|
|
|
|
volumes:
|
2019-03-01 12:59:33 +00:00
|
|
|
- devilbox-elastic:/usr/share/elasticsearch/data
|
2019-02-23 10:59:49 +00:00
|
|
|
|
|
|
|
logstash:
|
|
|
|
image: docker.elastic.co/logstash/logstash-oss:${ELK_SERVER:-6.6.1}
|
|
|
|
hostname: logstash
|
|
|
|
ports:
|
|
|
|
- "${LOCAL_LISTEN_ADDR}${HOST_PORT_ELK_LOGSTASH:-9600}:9600"
|
|
|
|
networks:
|
|
|
|
app_net:
|
|
|
|
ipv4_address: 172.16.238.241
|
|
|
|
environment:
|
|
|
|
- TZ=${TIMEZONE:-UTC}
|
|
|
|
- LOG_LEVEL=info
|
|
|
|
- HTTP_HOST=0.0.0.0
|
|
|
|
- HTTP_PORT=9600
|
|
|
|
- CONFIG_RELOAD_AUTOMATIC=true
|
|
|
|
- CONFIG_RELOAD_INTERVAL=300
|
|
|
|
- DB_HOST=DATABASE-SERVER
|
|
|
|
volumes:
|
2019-03-01 12:59:33 +00:00
|
|
|
- devilbox-logstash:/var/lib/logstash
|
2019-02-23 10:59:49 +00:00
|
|
|
depends_on:
|
|
|
|
- elastic
|
|
|
|
|
|
|
|
kibana:
|
|
|
|
image: docker.elastic.co/kibana/kibana-oss:${ELK_SERVER:-6.6.1}
|
|
|
|
hostname: kibana
|
|
|
|
ports:
|
|
|
|
- "${LOCAL_LISTEN_ADDR}${HOST_PORT_ELK_KIBANA:-5601}:5601"
|
|
|
|
networks:
|
|
|
|
app_net:
|
|
|
|
ipv4_address: 172.16.238.242
|
|
|
|
environment:
|
|
|
|
- TZ=${TIMEZONE:-UTC}
|
2021-02-11 14:48:18 +00:00
|
|
|
- ELASTICSEARCH_HOSTS=http://elastic:9200
|
2021-04-19 16:10:43 +00:00
|
|
|
- ELASTICSEARCH_URL=http://elastic:9200
|
2019-02-23 10:59:49 +00:00
|
|
|
depends_on:
|
|
|
|
- elastic
|
|
|
|
|
|
|
|
volumes:
|
2019-03-01 12:59:33 +00:00
|
|
|
devilbox-elastic:
|
|
|
|
devilbox-logstash:
|