2
respostas

(Resolvido) Problema ao subir API-gateway-1

Quando eu tento rodar o docker compose up, aparentemente eu não recebo nenhum outro erro, porém o API gateway indica o seguinte problema:

api-gateway-1 | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration api-gateway-1 | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/ api-gateway-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh api-gateway-1 | 10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf is not a file or does not exist api-gateway-1 | /docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh api-gateway-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh api-gateway-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh api-gateway-1 | /docker-entrypoint.sh: Configuration complete; ready for start up api-gateway-1 | 2024/03/01 15:59:53 [emerg] 1#1: host not found in upstream "web-financeiro" in /etc/nginx/conf.d/api-gateway.conf:5

Se eu tento acessar o localhost:4200, nada acontece. Algúem pode me ajudar por favor?

2 respostas

Na verdade o problema eram as quebras de linha nos arquivos .sh

Mudando para a quebra de linha do unix, o projeto subiu normalmente

Oi, Raphael, tudo bem?

Obrigada por compartilhar a sua resolução aqui no fórum!

Se outra dúvida surgir, fique à vontade para postar.

Abraços!