+ python projects nginx example config and postgis and additional python server docker examples
This commit is contained in:
@ -13,4 +13,18 @@ services:
|
||||
python manage.py migrate
|
||||
&& python manage.py collectstatic
|
||||
&& uvicorn 'APP_NAME.asgi:application' --host 0.0.0.0
|
||||
"
|
||||
python-project:
|
||||
user: ${WORKSPACE_PUID}:${WORKSPACE_PGID}
|
||||
restart: always
|
||||
build:
|
||||
context: ${PYTHON_PROJECTS_DIR}/project
|
||||
volumes:
|
||||
- ${PYTHON_PROJECTS_DIR}/project:/code
|
||||
command: bash -c "
|
||||
cd src
|
||||
&& python manage.py compilemessages
|
||||
&& python manage.py collectstatic --clear --noinput
|
||||
&& python manage.py migrate
|
||||
&& uvicorn --reload app.asgi:application --host 0.0.0.0
|
||||
"
|
Reference in New Issue
Block a user