All Questions
59 questions
0
votes
1
answer
36
views
incorrect database name in Rails app when containerized using docker-compose
I have a rails app that I'm trying to containerize locally using docker-compose. I am consistently getting a "database does not exist" error from docker-compose but the database name is a ...
1
vote
1
answer
316
views
Postgres database deletes itself after some time STATEMENT: DROP DATABASE postgres;
I deployed my Ruby on Rails app with docker in vps, but after some time (10-20 hours) the postgres database deletes itself STATEMENT: DROP DATABASE postgres;
Can it be some kind of virus? I just ...
0
votes
2
answers
747
views
I keep getting YAML syntax error occurred while parsing /rails/config/database.yml
I really need some help. I am new to Ruby on Rails. I am building a rails 7.1.0 app using postresql with docker. I am working on a Pop!_OS 22.04 LTS computer with
ruby 3.2.2 (2023-03-30 revision ...
0
votes
2
answers
1k
views
Localhost not found even if my docker containers are up?
I am relatively new to dev in general, to the Docker universe and to Rails in particular, apologize in advance if it sounds like a silly question.
I am trying to run an application in a monorepo ...
0
votes
0
answers
214
views
Database in docker container won't talk to rails
Btw if you don't know Ruby on Rails I don't think you'll be able to answer this. I'm on linux and running the db and services in docker containers using a compose file.
db says: database system is ...
1
vote
1
answer
2k
views
Rails on Docker: ActiveRecord::ConnectionNotEstablished: could not translate host name to address: Try again
I'm trying to dockerize my Ruby on Rails API, the output of the command "docker-compose ps" is this:
Since the containers are up, I tried to migrate my database use this command "...
0
votes
0
answers
52
views
Docker: could not connect to server: Connection refused Is the server running on host "127.0.0.1" and accepting TCP/IP connections on port 5432 [duplicate]
I'm new to docker and working on dockerising an existing RoR app.
Here's my docker-compose.yml file:-
version: '3.8'
services:
web:
build: .
command: bundle exec rails s -p 3000 -b '0.0.0.0'
...
4
votes
1
answer
2k
views
Rails app with docker-compose does not read .env file
I'm trying to run a Rails app locally built with docker-compose. I'd like to keep all my config vars within .env and have docker-compose read from this file. However I continually run into the error ...
0
votes
1
answer
832
views
Rails/PostgreSQL - PG::ConnectionBad: FATAL: password authentication failed for user (for CI/CD)
First of all, I know there are answers to this question:
PG::ConnectionBad: FATAL: password authentication failed for user "alphauser"
Rails: FATAL - Peer authentication failed for user (PG:...
2
votes
1
answer
5k
views
SCRAM authentication requires libpq version 10 or above [duplicate]
i'm trying to implement docker in my rails api but I keep getting this error
PG::ConnectionBad: SCRAM authentication requires libpq version 10 or above.
I've try all the solutions I've found on the ...
0
votes
2
answers
699
views
Docker rails app wont talk to postgresql database
I have been trying to setup my rails project on docker along with a postgres database but for some reason my rails project wont connect to the database
I can connect to the database using a database ...
3
votes
1
answer
8k
views
Docker Volume - PG::DiskFull - No space left on device
How to solve a Disk full error in Docker Volume using a Postgresql database.
I'm not sure if the issue is with docker, docker volumes or Postgres configuration.
Environment
Docker on MAC - Postgresql
...
3
votes
2
answers
5k
views
Connect to PostgreSQL Database in Docker Container from DBeaver
I can't get the connection between my PostgreSQL database from my Rails app which is running in a Docker container working.
The application just works fine, I just can't connect to the database.
...
0
votes
1
answer
60
views
db issues when dockerizing Ruby on Rails application
I'm trying to dockerize an existing rails application. But it's running into an error when trying to invoke rake db:create.
Here is the error:
could not connect to server: No such file or directory
...
0
votes
1
answer
1k
views
Docker compose with Rails and Postgres could not connect to server: No route to host Is the server
I'm currently having an issue with my docker-compose that have these services.
Rails app and Postgres. These are my configurations:
docker-compose.yml
version: '3'
services:
db:
image: postgres:...