Deploy Rails 7.1 With Postgres Using Docker Compose | Ruby On Rails 7.1 Tutorial

preview_player
Показать описание
Today we try adding Postgresql to the Rails 7.1 Docker stack, and it kind of just works!

Join this channel to help support these videos:

Follow me on social media:

#Deanin #Software #Programming
Рекомендации по теме
Комментарии
Автор

That's right! Today we use the cool new Rails 7.1 Docker stuff to add postgres into the mix, without having to figure out how to make it all work on the deployment server :D

Deanin
Автор

Thanks again for these timely videos. I just containerized my entire rails dev setup. I do it outside of the individual rails app though, in a dev workspace so I don't have to repeatedly set up new instances when I create a new app to play around with. I added postgres, redis, mailhog, minio, and elasticsearch. Hopefully with this new direction in 7.1 and dockerd, they get to something like sail in Laravel.

nmead
Автор

Nice intro to docker-compose with Rails. Just to note that we needed to to add "libpq-dev" to the Dockerfile "apt-get install" to make it work (I believe because we were using a later posgtres image).

cmistry
Автор

Wow, great content and lots of it :)

Do not think you need db:create
db:prepare runs create, migrate and seed

petebytes
Автор

What triggers the migration when you run docker-compose build && docker-compose up after generating the posts scaffold?

benmercerdev
Автор

Hi, I followed the tutorial and it worked great but when I try to change to the development environment the containers run perfectly fine but when I head to localhost it says that localhost did not send any data.

ryantoh
Автор

For macOS `docker-compose` is now a parameter to `docker`. `docker-compose up` becomes `docker compose up`.

mariozigliotto
Автор

Great video, a question what happend with the rails db:migrate RUN command?

Gio-wb
Автор

@Deanin Can you tell me how to deploy the same Web App in kubernetes. Urgently required.

recker
Автор

Can you do this video combined with EC2 instance on Amazon deployment?

ashthruthelens
Автор

Please make video on deploying Rails 7 app on Digitalocean droplet (without Hatchbox)

waishnavdeore
Автор

Such a great video especially with the environment setup, I followed step-b step but I don't know why when I try access my localhost it shows connection error even though docker-compose up says everything is okay

kefahngwei
Автор

Thanks a lot for this!
Did you plan to make a video on how to use an Amazon RDS instance with postgres instead of a volume ?
It would be mind blowing !

Thanks again :)
flip

flipflop
Автор

Hello, can you tell how you install rails 7.1? From rvm or using curl with rails official repo?

Jasha
Автор

Do we realy need "rails db:create" in docker-entrypont? I thouth that "rails db:prepare" is creating db if it's not created..

rickbacker
Автор

Hello!
I have this error
HTTP parse error, malformed request: #<Puma::HttpParserError: Invalid HTTP format, parsing fails. Are you trying to open an SSL connection to a non-SSL Puma?>
I cleared my cache and cookies and still have, do you know what can I do?

AlejandroVazquez-dlnf
Автор

Why rails new appname --main not working on my laptop?

azizdevfull
Автор

Thanks for the helpful video, but in this case rails had to be installed in the system instead of dockerizing the installation

rajarshiganguly
Автор

Can you tell me how to deploy the same Web App in kubernetes. Urgently required. @Deanin

recker
Автор

Nice Video! I have a pritty similar setup with

frauseo
visit shbcf.ru