Initial commit.

This commit is contained in:
yohan 2019-07-14 22:46:16 +02:00
commit 8f3e7c7616
2 changed files with 30 additions and 0 deletions

25
docker-compose.yml Normal file
View 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
View 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'