Skip to content

Commit

Permalink
Fix Docker Compose ES setup
Browse files Browse the repository at this point in the history
  • Loading branch information
janheinrichmerker committed Nov 3, 2020
1 parent 048ce3d commit 6382d12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ services:
ports:
- "9200:9200"
- "9300:9300"
command: ["tar", "-C", "/var/lib/elasticsearch/", "-zxvf", "es-nodes.tar.gz"]
command: bash -c "mkdir -p /var/lib/elasticsearch && tar -C /var/lib/elasticsearch/ -zxvf /es-nodes.tar.gz && bin/elasticsearch"
networks:
- cam
volumes:
- ./es-nodes.tar.gz:/es-nodes.tar.gz

volumes:
esdata:
Expand Down

0 comments on commit 6382d12

Please sign in to comment.