I\'m running a ruby on rails application in docker container. I want to create and then restore the database dump in postgres container. But I\'m
Below is what I\'ve do
When you use command
docker-compose run -d db
you run a separate container it means you are running 3 containers where 1 is application 2 are dbs. The container you run using above command will not be a part of service. compose is using separate db.
So instead of running docker-compose up -d db
run docker-compose up -d
and continue with your script