All Questions
Tagged with docker-compose ruby-on-rails
493
questions
0
votes
0
answers
30
views
localhost:3000 not working when I start a docker container for my Rails project
I was following a tutorial on how to Dockerize a brand new Rails 7 app. I made the Docker container 'distant-mirror' Setting up the Docker container took about two hours, but now I entered in my ...
0
votes
0
answers
55
views
Debugging tailwindcss:watch in Procfile.dev in Docker
I am trying to build a development compose.yaml to mimic what I hope to be my production deployment. Currently it looks like the following using bin/dev.
services:
web:
build:
context: ./
...
0
votes
0
answers
34
views
bundler: failed to load command: rake (/usr/local/bin/rake) /usr/local/lib/ruby/site_ruby/2.6.0/bundler/spec_set.rb:87:in `block in materialize':
I'm having problems when scheduling, it's a rake error
After creating the process and letting it run for 1 minute at a time, I logged in and ran
tail -f log/cron.log which returns the error message
...
0
votes
0
answers
44
views
Rails log files in Docker volume are not being updated inside Docker container
I am trying to set up promtail as part of my docker-compose setup to collect my Rails logs.
The Rails app is running outside Docker, directly in the host machine through:
rails s
This is the promtail ...
0
votes
0
answers
26
views
How to use environment variables with Docker [duplicate]
Outside of Docker, I am able to run bundle config gem.fury.io $GEMFURY_API_KEY followed by bundle install to authenticate and download a gem from a private repository on gemfury. However, when I ...
0
votes
1
answer
133
views
Rails docker-compose file connection to server at "127.0.0.1", port 5432 failed
I'm currently working on a Dockerized web application using Docker Compose. I have two services defined in my docker-compose.yml file: db and api, where db is a PostgreSQL container and api is a Rails ...
0
votes
0
answers
328
views
How to use docker compose for aws ecr
Until now I had only the rails server and database but now I have added a few dependencies like sidekiq, redis and sneakers for rabbitmq. I want to use docker-compose. I have below dockerfile and ...
-1
votes
1
answer
200
views
Docker compose for rails application
I have below docker compose file, and i have few questions regarding it,
version: '3.8'
services:
web:
build:
context: ./
dockerfile: Dockerfile
platform: linux/amd64
...
1
vote
0
answers
89
views
Error: Couldn't resolve host name in Rails application with Docker-compose and Nginx
I'm trying to get up a Rails application with docker-compose, postgres and nginx. The rails application is running healthly by its own. It's responing me accordingly as expected. But when I run it ...
1
vote
1
answer
158
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
0
answers
37
views
The edits to Rails models, generated in Docker, do not update in Docker when migrating
I am trying to generate a migration, for which I first enter with
docker compose exec rails bash.
Then I create the migration using
rails generate model
and it is successfully created locally. ...
0
votes
0
answers
123
views
Problem connecting yarn packages in docker-cmpose
When I start the server locally using the bin/dev command, everything works just fine and esbuild compiles all files without errors
#bin/dev
if gem list --no-installed --exact --silent foreman; then
...
0
votes
1
answer
221
views
In Docker, how can I upgrade from Bullseye to the Bullseye security version?
I am currently running Debian GNU/Linux 11 (bullseye) in a Docker container with kernel version 5.10.197-1. I have identified a security vulnerability (CVE-2023-25775) that is fixed in the Bullseye ...
0
votes
0
answers
73
views
getting error "PG::InvalidSchemaName: ERROR: no schema has been selected to create in" while running docker-compose up
i am using ruby on rails and postgresql for my project, here i am using two schemas one is CMS_DB_SCHEMA and another is SM_DB_SCHEMA for diffrent use case of my project so i have created dockerfile ...
0
votes
0
answers
206
views
Docker with Rails and Vite: How to run npm dev for Vite
Building a rails api backend with a React front end with Vite for hot module replacement. Since my M1 Mac can't run anything without failing, I'm using Docker. I can get the rails server running in ...