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.

15 lines
502 B

  1. services:
  2. python-someproject:
  3. user: ${WORKSPACE_PUID}:${WORKSPACE_PGID}
  4. build:
  5. context: ${PYTHON_PROJECTS_DIR}/someproject
  6. args:
  7. - PUID=${WORKSPACE_PUID}
  8. - PGID=${WORKSPACE_PGID}
  9. - PYTHON_VERSION=3.9.20
  10. volumes:
  11. - ${PYTHON_PROJECTS_DIR}/someproject:/app
  12. command: bash --init-file /venv/bin/activate -c "
  13. python manage.py migrate
  14. && python manage.py collectstatic
  15. && uvicorn 'APP_NAME.asgi:application' --host 0.0.0.0
  16. "