docker: fix data persistence with TINYWEB_DATA_DIR env var
This commit is contained in:
parent
af6ad6d391
commit
71c1175df8
4 changed files with 4 additions and 5 deletions
|
|
@ -29,6 +29,7 @@ if [ ! -f "$CONFIG_FILE" ]; then
|
|||
EOF
|
||||
fi
|
||||
|
||||
export TINYWEB_DATA_DIR="/data"
|
||||
export RNS_CONFIG_DIR="$CONFIG_DIR"
|
||||
# Bind to 0.0.0.0 inside the container; isolation is handled by Docker's port mapping.
|
||||
exec python app.py --bind 0.0.0.0 "$@"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue