Skip to content

This script facilitates the creation of a Django project, creates a docker-compose script to deploy postgresql and pgadmin, then modifies Django configs where applicable.

Notifications You must be signed in to change notification settings

cri9913/Django-Postgres-Autodeploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Why?

This is a super hack-y script to auto deploy postgres and pgadmin in docker, then point your Django project to it.

Usage

This is duplicated within setup.sh

NOTE: This was only tested on Ubuntu Server 24.04.

I HIGHLY recommend using a virtual environment.

Make sure you install the dependencies below before executing (in your venv)

Example setup:

sudo apt update
sudo apt install python3 python3-venv docker.io docker-compose-v2 psycopg2 build-essential python3-dev libpq-dev
python3 -m venv venv
source venv/bin/activate
(venv) pip install django
(venv) chmod +x setup.sh; ./setup.sh

About

This script facilitates the creation of a Django project, creates a docker-compose script to deploy postgresql and pgadmin, then modifies Django configs where applicable.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages