A
A
Andrey Baibek2020-03-14 16:22:42
PostgreSQL
Andrey Baibek, 2020-03-14 16:22:42

How to run Postgres and Redis via docker-compose in Ruby on Rails?

Greetings. I have a Rails 6 app with Sidekiq on Redis and a postgres database.
Task: Postgres and Redis (needed for sidekiq) to run through docker-compose, for
the application you need to write `Procfile`.
This is all for the development environment. As I understand it, I first set up docker and then use Procfile to run docker commands from there?
Could you poke in the solution, leave resources? I didn’t work with docker before, so I’m very stupid, but I need to do it, as always, yesterday.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OnYourLips, 2020-03-14
@OnYourLips

First learn how to work with docker.
Then dockerfile.
And with the dockerfile, everything rises in one command.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question