- Copy the
secrets/env.dev.example
file tosecrets/.env.dev
and fill it - Run the containers:
docker compose up --build
- Visit http://localhost:8000
- Copy the
secrets/env.dep.example
file tosecrets/.env.dep
and fill it - Run the containers:
docker compose -f docker-compose.dep.yml up --build
- Visit http://localhost
-
Copy the
secrets/env.deps.example
file tosecrets/.env.deps
and fill it -
Install mkcert
-
Create a local certificate authority
mkcert -install
-
Create a trusted certificate on
/ngnix/certficates
cd nginx/certificates
mkcert localhost
-
Run the containers:
docker compose -f docker-compose.deps.yml up --build
-
Visit https://localhost
The deployment over HTTPS uses HSTS policies, so browser will redirect the HTTP requests to HTTPS for security. To delete the policies for localhost in Chrome, for example, go to chrome://net-internals/#hsts > Domain Security Policy > Delete domain security policies, and add
localhost
to the input field.
Development | Deployment | |
---|---|---|
Web app | django | django |
WSGI | django bulit-in | gunicorn |
Database | postgreSQL | postgreSQL |
Web Server | - | nginx |