+ python projects nginx example config and postgis and additional python server docker examples

This commit is contained in:
WP Studio
2025-06-24 13:53:08 +03:00
parent 92cefd6fcd
commit 4c410fa89f
4 changed files with 56 additions and 0 deletions

View File

@ -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
"