Coder Social home page Coder Social logo

starters-dev / postgres-and-redis Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 3.0 10 KB

🗄 PostgreSQL + Redis. Self-Hosted. Docker + Traefik + HTTPS.

Shell 100.00%
postgresql postgres redis redis-server traefik traefik-v2 traefik-docker docker docker-compose digitalocean

postgres-and-redis's Introduction

Deploying PostgreSQL and Redis behind Traefik in the Cloud


⚠️ This repo is not maintained anymore. Please, use https-backend instead.


This starter is useful for development purposes and faster environment setup.

It deploys PostgreSQL and Redis containers on a server and the containers are exposed to public. So you can share it among the teammates.

For the full explanation, check out the article.

Quick tutorial

  1. Create new droplet in DigitalOcean.
  2. Clone the repo:
> git clone https://github.com/kanzitelli/postgres-and-redis-behind-traefik.git backend
> cd backend
  1. Set up .env file:
> nano .env

Content of .env file should look like this:

# Postgres
DB_NAME=db
DB_USER=admin
DB_PASS=pass_12345qwerty
  1. Build docker compose file
> sh build.sh
  1. Connect to PostgreSQL and Redis
Postgres:
  Domain: postgresql://admin:[email protected]:5432/db
  IP: postgresql://admin:[email protected]:5432/db

Redis:
  Domain: redis://db.website.com:6379
  IP: redis://46.101.120.53:6379

postgres-and-redis's People

Contributors

kanzitelli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.