Initial commit.
This commit is contained in:
commit
8f3e7c7616
25
docker-compose.yml
Normal file
25
docker-compose.yml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
version: '2.1'
|
||||||
|
|
||||||
|
services:
|
||||||
|
|
||||||
|
elasticsearch:
|
||||||
|
container_name: elasticsearch:$VERSION_ELASTICSEARCH
|
||||||
|
build: "https://git.scimetis.net/yohan/docker-elasticsearch.git"
|
||||||
|
environment:
|
||||||
|
- discovery.type=single-node
|
||||||
|
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
||||||
|
restart: always
|
||||||
|
expose:
|
||||||
|
- '9200'
|
||||||
|
- '9300'
|
||||||
|
networks:
|
||||||
|
- reverse-proxy
|
||||||
|
volumes:
|
||||||
|
- elasticsearch_data:/usr/share/elasticsearch/data
|
||||||
|
|
||||||
|
networks:
|
||||||
|
reverse-proxy:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
elasticsearch_data:
|
5
start_or_update.sh
Executable file
5
start_or_update.sh
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# --force-recreate is used to recreate container when crontab file has changed
|
||||||
|
unset VERSION_ELASTICSEARCH
|
||||||
|
VERSION_ELASTICSEARCH=$(git ls-remote ssh://git@git.scimetis.net:2222/yohan/docker-elasticsearch.git| head -1 | cut -f 1|cut -c -10) \
|
||||||
|
sudo -E bash -c 'docker-compose up -d --force-recreate'
|
Loading…
Reference in New Issue
Block a user