refactor: simplify setup by already adding folder

This commit is contained in:
Rainer Killinger
2019-03-14 13:39:09 +00:00
parent 58802562f3
commit f3d27a8c6e
3 changed files with 3 additions and 7 deletions

View File

@@ -47,13 +47,10 @@ get Elasticsearch to work.
To start the database
```sh
# create a directory for all data
mkdir -p database
# let the database be the owner of the folder
# let the elasticsearch user and group be the owner of the folder
chown 100:101 database
# start the database
# start the database container
docker-compose up -d database
# have a look at the logs of the database
@@ -67,7 +64,7 @@ As stated in the `docker-compose.yml` the database will expose port `9200` to ot
The backend is providing an interface to search and bulk index data into the database. Simply run:
```sh
# start the backend
# start the backend container
docker-compose up -d backend
# have a look at the logs of the backend

0
database/.gitkeep Normal file
View File

View File

@@ -32,7 +32,6 @@ if [ "$ACTUAL_MAX_MAP_COUNT" -lt "$MINIMAL_MAX_MAP_COUNT" ]; then
done
fi
mkdir -p database
$SUDO chown 100:101 database
cat <<EOF