Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Mongo "Make it publicly available" option overwrites local nginx:stable-alpine image #4690

Open
x-mass opened this issue Dec 28, 2024 · 0 comments
Labels
🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization.

Comments

@x-mass
Copy link

x-mass commented Dec 28, 2024

Error Message and Logs

I'm currently utilizing the nginx:stable-alpine image for one of my services hosted on Coolify. However, I've encountered an issue where preview deployments started returning a 502 Bad Gateway error. This began after I enabled the "Make it publicly available" option for the default MongoDB resource in Coolify.

Upon investigating, I discovered that the nginx.conf file within the nginx:stable-alpine container was unexpectedly replaced by the configuration file from the Mongo nginx proxy image, which is used to expose MongoDB publicly.

The overwritten nginx.conf file is specifically configured for the MongoDB proxy, as illustrated below:

docker run --rm nginx:stable-alpine cat /etc/nginx/nginx.conff
user  nginx;
worker_processes  auto;

error_log  /var/log/nginx/error.log;

events {
    worker_connections  1024;
}
stream {
   server {
        listen 58193;
        proxy_pass ess4s8ac8agagc4g8gsskok8:27017;
   }
}

Fix is to run docker pull docker.io/nginx:stable-alpine to make it fetch original image.

Steps to Reproduce

  1. Run coolify default MongoDB instance
  2. Set "Make it publicly available" option
  3. docker run --rm nginx:stable-alpine cat /etc/nginx/nginx.conf

Example Repository URL

No response

Coolify Version

v4.0.0-beta.379

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Ubuntu 24.04 LTS

Additional Information

No response

@x-mass x-mass added 🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization. labels Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization.
Projects
None yet
Development

No branches or pull requests

1 participant