Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shubham947/template_django-with-docker
Template repo for Django with Docker, Postgres and GitHub Actions
https://github.com/shubham947/template_django-with-docker
django django-rest-framework docker postgresql
Last synced: 1 day ago
JSON representation
Template repo for Django with Docker, Postgres and GitHub Actions
- Host: GitHub
- URL: https://github.com/shubham947/template_django-with-docker
- Owner: shubham947
- Created: 2023-10-26T04:28:36.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-11T05:17:11.000Z (about 1 year ago)
- Last Synced: 2024-11-06T03:30:32.707Z (about 2 months ago)
- Topics: django, django-rest-framework, docker, postgresql
- Language: Python
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Template repo for Django with Docker and Postgres
This repo contains ready to use setup for Django with the following:
- Django
- `djangorestframework`
- Postgres db image in docker using `psycopg2`
- GitHub Actions: Lint and Test
- API Documentation using `drf-spetacular`For using GitHub Actions, you need to set the following in github secrets:
- DOCKERHUB_USER
- DOCKERHUB_TOKEN### Docker commands
- To build the image: `docker-compose build`
- To start the container: `docker-compose up`
- To stop the container: `docker-compose down`, you can also use `--volumes` flag with this command to remove the volumes created with the container.
- To run a command inside the container: `docker-compose run --rm app sh -c ""`