Skip to content

Commit 13aae95

Browse files
committed
Added docs to bind mount the data dir to the host to make it persistent.
1 parent 6eb445e commit 13aae95

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ The embedded Elasticsearch server will be used by default if you don't provide e
131131

132132
> Please note, the embedded Elasticsearch server was not designed for use in Production.
133133
134+
To make the data directory persistent, you can bind mount it with the following argument for `docker run`:
135+
136+
-v $PWD/data:/opt/logstash/data
137+
134138
## Optional, build and run the image from source
135139

136140
If you prefer to build from source rather than use the [pblittle/docker-logstash][1] trusted build published to the public Docker Registry, execute the following:

0 commit comments

Comments
 (0)