Linnea Deploy Code

Details

Recursive clone this repo

git clone https://github.com/as641651/LinneaDeployDemo.git --recursive

The production vesrsion serves django with gunicorn and nginx

Usage

docker-compose -f prod-compose.yml build
docker-compose -f prod-compose.yml up

Build is done only once. You have to rebuild only if you change the Dockerfiles or add python requirements

To start server and return terminal

nohup docker-compose -f prod-compose.yml up &

To Stop serving and detach docker volumnes

docker-compose -f prod-compose.yml down -v

More information:

Docker basics

Nginx, Gunicorn

Setting up postgres with docker