Use Uvicorn for production with Nginx
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user