- Docker & Docker Compose
- Nginx & SSL (Let's Encrypt)
- PostgreSQL
- Django
- Gunicorn
- Fork this project (or download the master.zip)
- Delete the
.git
folder - Rename the folder to your project name
- Execute
install.sh
and provide your project name
Run docker-compose up
- Edit
deploy.sh
anddocker-compose.prod.yml
with your project envvars (USER
,SERVER_URI
,VIRTUAL_HOST
,LETSENCRYPT_HOST
andLETSENCRYPT_EMAIL
) - Run
./deploy.sh
You can copy and rename docker-compose.prod.yml
replacing prod
to dev
, for example, and do the same with deploy.sh
(in this example will be something like deploy.dev.sh
) and change the lines that make sense to you to deploy to any enviroment that you have.
This project comes with a file called bootstrap.sh
to help in a first configuration of a Ubuntu 16.04 server. If you plan to deploy this project to a brand new server, just upload bootstrap.sh
to your server, edit the file vars and run it as root. Otherwise, just remove it from your project and do the configuration yourself.
- Update
DATABASE
insettings.py
on install to connect with thedatabase
service