rsangole / postgres

How I setup my local postgres database using docker-compose to run a postgres service + RStudio service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

How to setup a local dockerized Postgres database from scratch

  1. Pull postgres docker image using docker pull postgres:13.3
  2. Edit 00-postgres-init.sh with your custom settings
  3. Run ./00-postgres-init.sh, this sets up new roles + new databases
  4. Check the configuration in docker-compose.yml for your postgres database settings and docker images
  5. To run RStudio and Postgres together, run docker-compose up -d
  6. Connect to RStudio in a browser using localhost:8787
  7. Test your database by running postgres.R

As a short cut to run docker & open a browser for RStudio, run docker-compose up -d; firefox localhost:8787

About

How I setup my local postgres database using docker-compose to run a postgres service + RStudio service


Languages

Language:Shell 68.3%Language:R 31.7%