Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.

Commit d8ab7c9

Browse files
author
Chris Wiechmann
committed
Make sure Filebeat remembers last position - Adding a volume
1 parent 521b4e9 commit d8ab7c9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docker-compose.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ services:
121121
ports:
122122
- 9000:9000
123123
volumes:
124+
- type: volume
125+
source: filebeatdata
126+
target: /usr/share/filebeat/data # Required to make sure that Filebeat remembers the last position, even if the container has been removed
124127
- /etc/localtime:/etc/localtime:ro # Required to sync timezone of API-Gateway into the Docker-Container
125128
- ${PWD}/filebeat/filebeat.yml:/usr/share/filebeat/filebeat.yml
126129
- ${APIGATEWAY_OPENTRAFFIC_FOLDER}:/var/log/opentraffic
@@ -167,6 +170,7 @@ volumes:
167170
esdata1:
168171
esdata2:
169172
logs:
173+
filebeatdata:
170174

171175
networks:
172176
elastic:

0 commit comments

Comments
 (0)