devilbox/compose/docker-compose.override.yml-elk

63 lines
1.6 KiB
Plaintext
Raw Normal View History

2019-02-23 10:59:49 +00:00
# vim: set ft=yaml:
# https://www.docker.elastic.co
---
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:
- 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:
- 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}
- ELASTICSEARCH_URL=http://elastic:9200
depends_on:
- elastic
volumes:
devilbox-elastic:
devilbox-logstash: