You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

16 lines
502 B

services:
python-someproject:
user: ${WORKSPACE_PUID}:${WORKSPACE_PGID}
build:
context: ${PYTHON_PROJECTS_DIR}/someproject
args:
- PUID=${WORKSPACE_PUID}
- PGID=${WORKSPACE_PGID}
- PYTHON_VERSION=3.9.20
volumes:
- ${PYTHON_PROJECTS_DIR}/someproject:/app
command: bash --init-file /venv/bin/activate -c "
python manage.py migrate
&& python manage.py collectstatic
&& uvicorn 'APP_NAME.asgi:application' --host 0.0.0.0
"