-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Description
Error Message and Logs
no available server
Steps to Reproduce
My goal is to have a project building from Docker Compose to be able to run 2 services (Rails App, Sidekick).
Below is my DockerfileProduction and docker-compose-production.yml
FROM matheusvetor/qualicert-web-ruby:v1
RUN mkdir /app
WORKDIR /app
ADD . /app
RUN bundle install -j4
RUN bundle exec rails assets:precompile
RUN bundle exec rails db:migrate
version: "3"
services:
web:
build:
context: .
dockerfile: DockerfileProduction
platform: linux/amd64
command: bundle exec puma -C config/puma.rb
healthcheck:
test:
- CMD-SHELL
- "curl -s --noproxy localhost localhost:3000 | grep -q 'OK' || exit 1"
interval: 30s
timeout: 10s
retries: 3
start_period: 20s
environment:
- TZ=America/Sao_Paulo
ports:
- "3000:3000"
sidekiq:
build:
context: .
dockerfile: DockerfileProduction
platform: linux/amd64
command: bundle exec sidekiq -C config/sidekiq.yml
environment:
- TZ=America/Sao_Paulo
healthcheck:
test:
- CMD-SHELL
- "ps aux | grep '[s]idekiq 5' || false"
interval: 30s
timeout: 10s
retries: 3
start_period: 20s
However, I have two main issues with that:
- I have 2 standalone services (redis, postgres) that arent visible by the created resources from docker-compose. The only way I found is to use REDIS_URL and DATABASE_URL with public url.
- The service (web) has a URL, is mapped to the 3000 port but cant receive any request (even I configuring in advanced tab
Connect To Predefined Network
).
What I'm doing wrong?
I already could make work with nix packages but running only the web project.
Example Repository URL
No response
Coolify Version
v4.0.0-beta.420.9
Are you using Coolify Cloud?
No (self-hosted)
Operating System and Version (self-hosted)
Ubuntu 24.04
Additional Information
A thing I noted is that project hasn't the traefik configuration.
Metadata
Metadata
Assignees
Labels
No labels