mirror of
https://github.com/ansible/awx.git
synced 2026-01-27 00:21:30 -03:30
Adding logstash to default compose file
This commit is contained in:
parent
b105e2b9b6
commit
576e3bfc1a
@ -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
|
||||
|
||||
3
tools/docker-compose/Dockerfile-logstash
Normal file
3
tools/docker-compose/Dockerfile-logstash
Normal file
@ -0,0 +1,3 @@
|
||||
FROM logstash:5-alpine
|
||||
COPY logstash.conf /
|
||||
CMD ["-f", "/logstash.conf"]
|
||||
19
tools/docker-compose/logstash.conf
Normal file
19
tools/docker-compose/logstash.conf
Normal 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 }
|
||||
}
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user