docker-django-nginx-uwsgi-postgres-load-balance-tutorial icon indicating copy to clipboard operation
docker-django-nginx-uwsgi-postgres-load-balance-tutorial copied to clipboard

實戰 Docker + Django + Nginx + uWSGI + Postgres - Load Balance -Tutorial 📝

Results 3 docker-django-nginx-uwsgi-postgres-load-balance-tutorial issues
Sort by recently updated
recently updated
newest added

Bumps [djangorestframework](https://github.com/encode/django-rest-framework) from 3.8.1 to 3.9.1. Release notes *Sourced from [djangorestframework's releases](https://github.com/encode/django-rest-framework/releases).* > ## Version 3.9.1 > Change Notes: > https://www.django-rest-framework.org/community/release-notes/#39x-series > > ## Verision 3.9.0 > Release announcement: >...

dependencies

#1 使用這指令就可以一次起兩支,不過nginx還是要對應修改,但是這做法至少省掉你一次build兩個image的空間跟時間,有興趣可以fetch下來看看:) 啟動: `docker-compose up -d --scale api=2` 關閉: `docker-compose down -v`

1. 善用collectstatic指令功能收集靜態檔,直接起一隻新的container做這件事然後讓他死掉就好了 2. uwsgi改用tcp port 的方式對接,方便nginx對應compose 3. 指令使用`docker-compose up -d --scale api=2`多起一支就好 晚點給你發pull request 試試看,有興趣就看看吧;)