Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 564 Bytes

README.md

File metadata and controls

33 lines (24 loc) · 564 Bytes

Django, Gunicorn, NGINX on Docker

Usage

  1. Set Environment Variables in web/.env
SECRET_KEY=+m8*(*n2dgz+(&*%@*3nlj2b+!vt1va*gn7xzef%kuev7fcu5d
DB_NAME=test_db
DB_USER=test
DB_PASS=test
DB_SERVICE=postgres
DB_PORT=5432
...

DB_SERVICE and DB_PORT are used in docker-compose.yml and Dockerfile, so recommend not to change.

When upload project to github or whatever, make sure to add .env to .gitignore

  1. Set Domain name in nginx/nginx.conf
...
server_name example.org;
...
  1. Build
$ sudo sh build-docker.sh