Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions microservices-orders/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ services:
- "9200:9200"
- "9300:9300"
environment:
discovery.type: "single-node"
xpack.security.enabled: "false"
XPACK_SECURITY_ENABLED: "false"
xpack.monitoring.enabled: "false"
Expand Down
6 changes: 6 additions & 0 deletions microservices-orders/scripts/run-services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ ADDITIONAL_ARGS=${ADDITIONAL_ARGS:-""}
LOG_DIR=${LOG_DIR:="logs"}
PIDS_FILE=${PIDS_FILE:=".microservices.pids"}

# check if we can write to the log directory
if [ ! -w $LOG_DIR ]; then
echo "Unable to write to the logs dir with uid `id -u`. Logging to /tmp."
LOG_DIR=/tmp
fi

echo "Config File arg: $CONFIG_FILE_ARG"
echo "Additional Args: $ADDITIONAL_ARGS"
echo "Starting microservices from $JAR"
Expand Down