Docker: Running a Rails App Container with PostgreSQL Service

preview_player
Показать описание
In this episode we show you how to run a rails app using docker and connect it to a postgresql service. We cover how to work with environment variables and how to configure your database to work when running your app with docker

#LINKS

#ZACKSIRI

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

Question: is always necessary to copy the sources inside the container or it's better to mount the directory where the source is located using a volume? I think it's the same.. don't you?

HernanDanielGarciaSifontes
Автор

Is there a video showing how to build the redis or postgresql containers?

MegaXtc
Автор

You can use docker-compose in order to link between different containers.

nabilbouabdallah
Автор

Great video series! I did notice one issue, however, where at around 2:35 you're running the "postgres" container but didn't specify a port. In the Port and Volume video you did set a port via cli so the port for the linux container was mapped to the postgres container as 5432:5432. I found that I had to do this myself, otherwise the Access URL (observed in Kitematic) was set as "localhost:<not set>".

benbabics
Автор

Thank you. Your video is very just and correct.

olegborodko
Автор

I'm using Figaro gem. Should I create the .env.prod file too?
Can I just use the application.yml generated by Figaro to load my production ENV config variables?

zulhilmizainudin