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 To start the database
```sh ```sh
# create a directory for all data # let the elasticsearch user and group be the owner of the folder
mkdir -p database
# let the database be the owner of the folder
chown 100:101 database chown 100:101 database
# start the database # start the database container
docker-compose up -d database docker-compose up -d database
# have a look at the logs of the 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: The backend is providing an interface to search and bulk index data into the database. Simply run:
```sh ```sh
# start the backend # start the backend container
docker-compose up -d backend docker-compose up -d backend
# have a look at the logs of the 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 done
fi fi
mkdir -p database
$SUDO chown 100:101 database $SUDO chown 100:101 database
cat <<EOF cat <<EOF