You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Run coolify default MongoDB instance
Set "Make it publicly available" option
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
The text was updated successfully, but these errors were encountered:
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
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:
Fix is to run
docker pull docker.io/nginx:stable-alpine
to make it fetch original image.Steps to Reproduce
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
The text was updated successfully, but these errors were encountered: