docker compose up
- Admin access:
- URL: http://127.0.0.1:8000/admin/
- Username: admin
- Password: 1234
- Django views examples:
- We set up
MEDIA_URL = 'http://127.0.0.1:8090/media/'
using nginx absolute url, it allows us to be directly connected to nginx container by copy and pasting URL to browser. - For emulating Nginx local setup we described steps using ubuntu image there: Dockerfile.nginx. The Dockerfile should not be used on production, it's just a simple example how to set up nginx-extras.
- Nginx site config example file described there: default.site.conf.