Added .env to volume bindings

main
Antonio De Lucreziis 2 years ago
parent e05ec044af
commit 73ec884289

@ -66,10 +66,10 @@ $ cat <<EOF > database.local.json
} }
EOF EOF
$ cat <<EOF > .env $ cat <<EOF > .env
MODE="development" MODE="production"
HOST=":4000" HOST=":4000"
ADMIN_PASSWORD="secret" ADMIN_PASSWORD="secret"
MONITOR_SCRIPTS_DIR="./scripts" MONITOR_SCRIPTS_DIR="./scripts"
MONITOR_CACHE_TIMEOUT="5s", time.ParseDuration MONITOR_CACHE_TIMEOUT="10s"
EOF EOF
``` ```

@ -25,5 +25,6 @@ docker run -d \
-v /:/mnt/space:ro \ -v /:/mnt/space:ro \
-v /data-home:/mnt/data-home:ro \ -v /data-home:/mnt/data-home:ro \
-v "$(pwd)/buckets.local:/buckets" \ -v "$(pwd)/buckets.local:/buckets" \
-v "$(pwd)/.env:/app/.env" \
-v "$(pwd)/database.local.json:/app/database.local.json" \ -v "$(pwd)/database.local.json:/app/database.local.json" \
"$IMAGE_NAME" "$IMAGE_NAME"

Loading…
Cancel
Save