mirror of
https://github.com/Mailu/Mailu.git
synced 2025-03-03 14:52:36 +02:00
Move temporary db into container and show docker run command
This commit is contained in:
parent
f7caaddbec
commit
db87a0f3a1
@ -93,12 +93,7 @@ cat Dockerfile
|
||||
# gather volumes to map into container
|
||||
volumes=()
|
||||
|
||||
if [[ -n "${DEV_DB}" ]]; then
|
||||
volumes+=( --volume "${DEV_DB}:/data/main.db" )
|
||||
else
|
||||
mkdir -p "data"
|
||||
volumes=( --volume "${tmp}/data/:/data/" )
|
||||
fi
|
||||
[[ -n "${DEV_DB}" ]] && volumes+=( --volume "${DEV_DB}:/data/main.db" )
|
||||
|
||||
for vol in audit.py start.py mailu/ migrations/; do
|
||||
volumes+=( --volume "${admin}/${vol}:/app/${vol}" )
|
||||
@ -113,6 +108,8 @@ done
|
||||
cat <<EOF
|
||||
|
||||
=============================================================================
|
||||
The "${DEV_NAME}" container was built using this configuration:
|
||||
|
||||
DEV_NAME="${DEV_NAME}"
|
||||
DEV_DB="${DEV_DB}"
|
||||
DEV_PROFILER="${DEV_PROFILER}"
|
||||
@ -121,6 +118,12 @@ DEV_ADMIN="${DEV_ADMIN}"
|
||||
DEV_PASSWORD="${DEV_PASSWORD}"
|
||||
=============================================================================
|
||||
|
||||
=============================================================================
|
||||
You can start the container later using this commandline:
|
||||
|
||||
${docker/*\/} run --rm -it --name "${DEV_NAME}" --publish ${DEV_LISTEN}:8080$(printf " %q" "${volumes[@]}") "${DEV_NAME}"
|
||||
=============================================================================
|
||||
|
||||
=============================================================================
|
||||
The Mailu UI can be found here: http://${DEV_LISTEN}/sso/login
|
||||
EOF
|
||||
|
Loading…
x
Reference in New Issue
Block a user