Filebeat now runs from docker-compose

This commit is contained in:
2023-03-20 11:16:01 +01:00
parent 52d8e6e6ee
commit 0147bedd84
2 changed files with 15 additions and 18 deletions

View File

@@ -12,21 +12,4 @@ processors:
- add_cloud_metadata: ~
output.elasticsearch:
hosts: '${ELASTICSEARCH_HOSTS:elc-0.zipper.release11.com:9200}'
index: 'xmltools-${ENV_TYPE}-%{+yyyy.MM}'
setup.template:
name: 'xmltools-dev'
pattern: 'xmltools-*'
enabled: false
setup.template:
name: 'xmltools-test'
pattern: 'xmltools-*'
enabled: false
setup.template:
name: 'xmltools-prod'
pattern: 'xmltools-*'
enabled: false
hosts: '${ELASTICSEARCH_HOSTS:elc-0.zipper.release11.com:9200}'

View File

@@ -50,6 +50,20 @@ services:
volumes:
- ./Swagger:/Swagger
filebeat:
build: ./Filebeat
container_name: xmltools-filebeat
user: root
volumes:
- "./Filebeat/filebeat.docker.yml:/usr/share/filebeat/filebeat.yml:ro"
- "/var/lib/docker/containers:/var/lib/docker/containers:ro"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
environment:
- ENV_TYPE=dev
command:
- "-e"
- "--strict.perms=false"
networks:
default:
name: tools_network