#35 use gunicorn for running the backend in production
This commit is contained in:
@@ -38,13 +38,16 @@ services:
|
||||
image: registry.gitlab.com/champs-libres/geonature-citizen/back
|
||||
volumes:
|
||||
- ./vendor/GeoNature-citizen/backend/gncitizen/:/home/appuser/citizen/backend/gncitizen/
|
||||
- ./vendor/GeoNature-citizen/backend/var/log/:/home/appuser/citizen/backend/var/log/
|
||||
- ./patches/settings.ini:/home/appuser/citizen/config/settings.ini
|
||||
- ./patches/settings.ini:/home/appuser/citizen/backend/config/settings.ini
|
||||
- ./patches/back/default_config.toml:/home/appuser/citizen/config/default_config.toml
|
||||
- ./patches/back/start_gunicorn.sh:/home/appuser/citizen/backend/start_gunicorn.sh
|
||||
- ./patches/back/wsgi.py:/home/appuser/citizen/backend/wsgi.py
|
||||
- ./patches/back/server.py:/home/appuser/citizen/backend/server.py
|
||||
ports:
|
||||
- "5002:5002"
|
||||
command: python wsgi.py
|
||||
command: bash start_gunicorn.sh
|
||||
taxhub:
|
||||
build:
|
||||
dockerfile: ./Dockerfile-taxhub
|
||||
@@ -57,7 +60,9 @@ services:
|
||||
- ./patches/taxhub/server.py:/home/appuser/taxhub/server.py
|
||||
- ./patches/taxhub/install_db.sh:/home/appuser/taxhub/install_db.sh
|
||||
- ./patches/taxhub/settings.ini:/home/appuser/taxhub/settings.ini
|
||||
command: python server.py
|
||||
- ./patches/taxhub/gunicorn_start.sh:/home/appuser/taxhub/gunicorn_start.sh
|
||||
- ./vendor/TaxHub/var/log/:/home/appuser/taxhub/var/log/
|
||||
command: bash gunicorn_start.sh
|
||||
|
||||
media:
|
||||
build:
|
||||
|
Reference in New Issue
Block a user