Use Uvicorn for production with Nginx

This commit is contained in:
2022-10-12 07:22:22 +01:00
parent 966fa37fe8
commit ce551bde75
7 changed files with 104 additions and 18 deletions

View File

@@ -2,8 +2,8 @@ version: "2"
services:
app:
image: xf/envelope:latest
build: ./docker
image: xf/envelope:dev
build: ${PORTAINER_GIT_DIR}/docker
volumes:
- ${PORTAINER_GIT_DIR}:/code
- ${APP_LOCAL_SETTINGS}:/code/app/local_settings.py
@@ -21,7 +21,7 @@ services:
condition: service_started
migration:
image: xf/envelope:latest
image: xf/envelope:dev
command: sh -c '. /venv/bin/activate && python manage.py migrate --noinput'
volumes:
- ${PORTAINER_GIT_DIR}:/code