https://github.com/gionniboy/djangazzo
Django docker compose for fast developing without ops overhead.
https://github.com/gionniboy/djangazzo
alpine compose devops django docker mailhog postgresql python
Last synced: about 1 year ago
JSON representation
Django docker compose for fast developing without ops overhead.
- Host: GitHub
- URL: https://github.com/gionniboy/djangazzo
- Owner: gionniboy
- License: bsd-3-clause
- Created: 2018-05-25T04:09:27.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-07-30T09:42:41.000Z (almost 3 years ago)
- Last Synced: 2025-04-03T10:22:49.503Z (over 1 year ago)
- Topics: alpine, compose, devops, django, docker, mailhog, postgresql, python
- Language: Python
- Size: 23.4 KB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Djangazzo
Djangazzo is a ready-to-go django environment built with docker compose for fast developing without ops overhead.
## Dev Env with docker-compose
Customise .env file if needed.
Remember: never commit/push a secret env file on repositories.
## docker-compose
First time we need to build the stack
```console
docker-compose build
```
Then
```console
docker-compose up [-d to detach]
```
Execute management command inside docker-compose
```console
docker-compose run --rm django python manage.py makemigrations
docker-compose run --rm django python manage.py migrate
docker-compose run --rm django python manage.py createsuperuser
docker-compose run --rm django python manage.py startapp myamazingapp
docker-compose run --rm django python manage.py collectstatic
```
These files are created by django inside docker so they are owned by root.
Change permission to solve the issue
```console
sudo chown -R $USER:$USER .
```
now we can open the browser to http://localhost:8000 and profit.
## POSTGRESQL
Postgres11 on its docker, it exposes the 5432 port \
You can connect using a psql client installed locally
```console
psql -U postgres -h 0.0.0.0 -p 5432
```
## REDIS
## MAILHOG
In development, it is often nice to be able to see emails that are being sent from your application. For that reason local SMTP server MailHpg with a web interface is available as docker container.
Container mailhog will start automatically when you will run all docker containers.
With [MailHog](https://github.com/mailhog/MailHog) running, to view messages that are sent by your application, open your browser and go to http://127.0.0.1:8025
# So Long, and Thanks for All the Fish
issue&&PR || GTFO
enjoy.
## **Authors**
* **G Pullara**
See also the list of [contributors](https://github.com/gionniboy/djangazzo/contributors) who participated in this project.
### **License**
This project is licensed under the BSD 3-Clause License - see the [LICENSE](LICENSE) file for details