Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

205
Visualizações
DigitalOcean droplet connection refused on every request

I managed to put my project in the droplet and run docker-compose build successfully. When I run docker-compose up and try to use swagger on my domain I get the following error messages in the console.

https-portal1_1 | 2020/03/03 22:52:13 [error] 291#291: *51 connect() failed (111: Connection refused) while connecting to upstream.

I must add that Nginx is not installed because I'm new to this and am in need of some help.

docker-compose.yml:

#docker-compose

version: '2'

services:
  app:
    build:
      context:  ./
      dockerfile: Dockerfile
  https-portal:
    image: steveltn/https-portal:1
    ports:
      - '80:80'
      - '443:443'
    links:
      - app
    restart: always
    environment:
      DOMAINS: 'ns2.wechoose.ro -> http://app:5000'
      STAGE: 'production'

Nginx is not yet installed, I tried installing it but it failed probably because I didn't do the configuration right.

The Nginx configuration file I used before, which failed was like this:

Nginx:

server {

    server_name ns2.wechoose.ro  www.ns2.wechoose.ro;

   location / {
     proxy_pass http://localhost:5000;
     proxy_http_version 1.1;
     proxy_set_header Upgrade $http_upgrade;
     proxy_set_header Connection keep-alive;
     proxy_set_header Host $host;
     proxy_cache_bypass $http_upgrade;
     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
     proxy_set_header X-Forwarded-Proto $scheme;
    }
over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda