Adding logstash to default compose file

This commit is contained in:
Matthew Jones 2017-03-07 12:05:12 -05:00
parent b105e2b9b6
commit 576e3bfc1a
4 changed files with 29 additions and 16 deletions

View File

@ -1,4 +1,4 @@
version: '2'
version: '3'
services:
# Primary Tower Development Container
tower:
@ -20,13 +20,17 @@ services:
- postgres
- memcached
- rabbitmq
- logstash
# - sync
# volumes_from:
# - sync
volumes:
- "../:/tower_devel"
privileged: true
logstash:
build:
context: ./docker-compose
dockerfile: Dockerfile-logstash
# Postgres Database Container
postgres:
image: postgres:9.4.1
@ -38,16 +42,3 @@ services:
image: rabbitmq:3-management
ports:
- "15672:15672"
# Source Code Synchronization Container
# sync:
# build:
# context: ./docker-compose
# dockerfile: Dockerfile-sync
# command: "lsyncd -delay 1 -nodaemon -rsync /src /tower_devel"
# volumes:
# - /tower_devel
# - "../:/src"
# working_dir: /src
# stdin_open: true
# tty: true

View File

@ -0,0 +1,3 @@
FROM logstash:5-alpine
COPY logstash.conf /
CMD ["-f", "/logstash.conf"]

View File

@ -0,0 +1,19 @@
input {
http {
port => 8085
user => awx_logger
password => "workflows"
}
}
## Add your filters / logstash plugins configuration here
filter {
json {
source => "message"
}
}
output {
stdout { codec => rubydebug }
}

View File

@ -1,4 +1,4 @@
FROM logstash:5
# Add your logstash plugins setup here
# Example: RUN logstash-plugin install logstash-filter-json
# Example: RUN logstash-plugin install logstash-filter-json