- Uses Docker to build an image of your app.
- Uses Postgresql as database by default.
- Configuration moved to environment variables according to 12 Factor Methodology.
- Install Docker on your machine.
- Run
docker-compose -f deployment/docker-compose.yml up
from the root folder.
- Run
docker ps
to get all the container id's. - Open a bash shell on the postgres container by writing
docker exec -ti <CONTAINER_ID> bin/bash
. - Run
psql --user postgres
from the bash shell. - Run
CREATE DATABASE django OWNER postgres
to create the database that you will use for your app. Replacedjango
with your desired database name. - Run
\q
andexit
to exit the shell.
- Create a new file called
/app/.env
and copy the contents from/app/.env.sample
to the new file. - Set the
RDS_DB
value to the name of your newly created database. E.g. "django".