Skip to content

Template repo for Django with Docker, Postgres and GitHub Actions

Notifications You must be signed in to change notification settings

shubham947/Template_Django-with-Docker

Repository files navigation

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 "<Your command>"

About

Template repo for Django with Docker, Postgres and GitHub Actions

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published