From d7980802625cdde37bd874a6e6eff07be2e8c2a9 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 30 Jun 2026 08:16:26 +0200 Subject: [PATCH] fix: rename compose service prediqo-web for Docker DNS Underscores in prediqo_web break nginx resolver 127.0.0.11 lookups; hyphenated service name fixes /setup 502. Co-authored-by: Cursor --- deploy/vps-gateway/nginx/prediqo.conf.template | 2 +- docker-compose.yml | 8 ++++---- nginx/default-http-only.conf.template | 2 +- nginx/default-https-custom-port.conf.template | 2 +- nginx/default.conf.template | 2 +- package.json | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/deploy/vps-gateway/nginx/prediqo.conf.template b/deploy/vps-gateway/nginx/prediqo.conf.template index d3278f53..00262f2e 100644 --- a/deploy/vps-gateway/nginx/prediqo.conf.template +++ b/deploy/vps-gateway/nginx/prediqo.conf.template @@ -32,7 +32,7 @@ server { } location / { - proxy_pass http://prediqo_web:80/; + proxy_pass http://prediqo-web:80/; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; diff --git a/docker-compose.yml b/docker-compose.yml index 7e637fde..eb586183 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -183,7 +183,7 @@ services: ENGINE_ENABLED: "false" command: ["node", "dist/apps/worker-bets.js"] - prediqo_web: + prediqo-web: build: context: ./prediqo_web dockerfile: Dockerfile @@ -205,7 +205,7 @@ services: container_name: prediqo_nginx restart: unless-stopped depends_on: - prediqo_web: + prediqo-web: condition: service_started backend: condition: service_healthy @@ -228,7 +228,7 @@ services: container_name: prediqo_nginx_https restart: unless-stopped depends_on: - prediqo_web: + prediqo-web: condition: service_started backend: condition: service_healthy @@ -297,7 +297,7 @@ services: container_name: prediqo_nginx_ssl restart: unless-stopped depends_on: - prediqo_web: + prediqo-web: condition: service_started backend: condition: service_healthy diff --git a/nginx/default-http-only.conf.template b/nginx/default-http-only.conf.template index 1eda5917..a82fdc39 100644 --- a/nginx/default-http-only.conf.template +++ b/nginx/default-http-only.conf.template @@ -36,7 +36,7 @@ server { } location / { - set $frontend prediqo_web; + set $frontend prediqo-web; proxy_pass http://$frontend:80; proxy_http_version 1.1; proxy_set_header Host $host; diff --git a/nginx/default-https-custom-port.conf.template b/nginx/default-https-custom-port.conf.template index b8b9021a..da3ada92 100644 --- a/nginx/default-https-custom-port.conf.template +++ b/nginx/default-https-custom-port.conf.template @@ -51,7 +51,7 @@ server { } location / { - set $frontend prediqo_web; + set $frontend prediqo-web; proxy_pass http://$frontend:80; proxy_http_version 1.1; proxy_set_header Host $host; diff --git a/nginx/default.conf.template b/nginx/default.conf.template index 9cc67db6..b679f2c0 100644 --- a/nginx/default.conf.template +++ b/nginx/default.conf.template @@ -49,7 +49,7 @@ server { } location / { - set $frontend prediqo_web; + set $frontend prediqo-web; proxy_pass http://$frontend:80; proxy_http_version 1.1; proxy_set_header Host $host; diff --git a/package.json b/package.json index 7ce53d06..dc05eaa7 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,8 @@ "phase-b:up:https": "docker compose --profile https-dns up -d --build", "phase-b:up:ssl": "docker compose --profile ssl up -d --build", "phase-b:down": "docker compose down", - "phase-b:logs": "docker compose logs -f nginx-https-dns nginx backend backend-engine backend-ws backend-worker-bets redis prediqo_web", - "phase-b:restart": "docker compose --profile https-dns restart nginx-https-dns backend backend-engine backend-ws backend-worker-bets prediqo_web", + "phase-b:logs": "docker compose logs -f nginx-https-dns nginx backend backend-engine backend-ws backend-worker-bets redis prediqo-web", + "phase-b:restart": "docker compose --profile https-dns restart nginx-https-dns backend backend-engine backend-ws backend-worker-bets prediqo-web", "phase-b:status": "docker compose ps", "ssl:init": "docker compose --profile ssl-init run --rm certbot-init", "ssl:dns-init": "docker compose --profile dns-init run --rm -it certbot-dns-init",