feat: actually mount the apps log dir

Also fix it so that the log directory is mountable from a custom path on the host if running dokku within a container.
This commit is contained in:
Jose Diaz-Gonzalez
2021-01-04 21:45:26 -05:00
parent 1aec869f9e
commit 0b3a6687f6
3 changed files with 3 additions and 0 deletions

1
dokku
View File

@@ -59,6 +59,7 @@ export DOKKU_VALID_EXIT=0
export DOKKU_PID="$BASHPID"
export DOKKU_LOGS_DIR=${DOKKU_LOGS_DIR:="/var/log/dokku"}
export DOKKU_LOGS_HOST_DIR=${DOKKU_LOGS_HOST_DIR:=$DOKKU_LOGS_DIR}
export DOKKU_EVENTS_LOGFILE=${DOKKU_EVENTS_LOGFILE:="$DOKKU_LOGS_DIR/events.log"}
export DOKKU_CONTAINER_LABEL=dokku