Posts

Showing posts from January, 2023

Running Ruby On Rails With Postgres In A Docker Container

Image
Ruby On Rails With PostgreSQL and Docker This project assumes: You are running MacOS,  a Linux distro, or Windows with WSL (Windows Subsystems For Linux) Know how to use the Terminal in before mentioned Operating Systems You have Visual Studio Code, and have it set up to open from a terminal command with "code ." You are somewhat familiar with Ruby and Rails Necessary Installs Docker Install Docker according to the operating system you will be using.https://docs.docker.com/engine/install/ Docker-Compose Install docs can be found here. https://docker-docs.netlify.app/compose/install/ Project Setup Create Project Directory In whatever directory you keep your projects, create a directroy for your project You can copy what's below, or use your own name. $ mkdir rails_postgres_docker_demo I'm using rails_postgres_docker_demo for this tutorial. Then cd into the directory you just made. $ cd rails_postgres_d...