Created
July 25, 2016 06:29
-
-
Save hkparker/41169c85122621eda1218ab2fed0cc9f to your computer and use it in GitHub Desktop.
Elasticsearch service file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Elasticsearch | |
Requires=docker.service | |
After=docker.service | |
[Service] | |
Restart=always | |
ExecStart=/usr/bin/docker run -v "/elasticsearch":/usr/share/elasticsearch/data -p=9200:9200 -p=9300:9300 --user="111:117" elasticsearch | |
ExecStop=/usr/bin/docker stop -t 2 elasticsearch | |
[Install] | |
WantedBy=default.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment