mirror of
https://github.com/sissbruecker/linkding.git
synced 2025-08-06 18:38:31 +02:00
Create docker image
This commit is contained in:
14
bootstrap.sh
Executable file
14
bootstrap.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
# Bootstrap script that gets executed in new Docker containers
|
||||
|
||||
# Set host name in settings if it was passed as environment variable
|
||||
if [[ -v HOST_NAME ]]
|
||||
then
|
||||
printf "ALLOWED_HOSTS=['%s']" $HOST_NAME > ./siteroot/settings_custom.py
|
||||
fi
|
||||
|
||||
# Run database migration
|
||||
python manage.py migrate
|
||||
|
||||
# Start uwsgi server
|
||||
uwsgi uwsgi.ini
|
Reference in New Issue
Block a user