`initialize': the scheme postgres does not accept registry part: postgres:@ (or bad hostname?) (URI::InvalidURIError) with Docker
Rename your environment variable!
DATABASE_URL
is reserved by Rails, and interpreted by ActiveRecord itself. I ran into the same issue.
Instead, use something like this:
host: <%= ENV['DB_HOST'] %>
password: <%= ENV['DB_PWD'] %>
Dockerise rails/redis/sidekiq/postgres project
Dockerfile is for building images, not for running daemons. The result of a docker build is a static thing (docker image). I recommend you to run redis directly from the docker-compose.yml
redis:
image: redis
radiofm:
(...)
depends_on: redis
(...)
Similar case for PostgreSQL. If you really what to setup your image for running daemons when container starts, you should tune CMD with a script or so.Also, you can only use CMD just once.
Related Topics
Docker-Compose Restart Connection Pool Full
Implementing a Lookup Table in Rails
What Is Ruby's Stringio Class Really
How to Override a Variable in a Ruby Subclass Without Affecting The Superclass
How to Automatically Escape HTML Content Using Jekyll and Markdown
How to Have Two Columns in One Table Point to The Same Column in Another with Activerecord
Undefined Method 'Merge' for '####':String <%= Form_For %> Helper
Why Can't The Mail Block See My Variable
How to Share Code Across Chef Cookbooks in a Chef-Repo
How to Use Variable Arguments with Ruby's Optionparser
How to Test Strong Params with Rspec
How to Access Sinatra App on Host Machine with Vagrant Forwarded Ports
How to Remove Backslashes from a JSON String
Save PDF File Shown by Pdfkit Middleware
How to Use C# Style Enumerations in Ruby
Stripping Commas from Integers or Decimals in Rails
Ruby: Class C Includes Module M; Including Module N in M Does Not Affect C. What Gives