Connecting to Postgres from a Separate Container
Explore how to manually connect to a Postgres database running in a separate container using Docker Compose commands, verify connectivity, and configure your Rails app to use Postgres by updating the Gemfile and database settings.
Connecting to Postgres
As you become more and more comfortable with using Compose, you will find
that you trust it to do what you need. A quick docker-compose ps is probably all you need to verify that a service is running. However, since running services like Postgres inside a ...