Skip to content

Environment Setup: docker_nginx doesn't not start - [emerg] 1#1: host not found in upstream #249

Open
@maxiar

Description

@maxiar

Hi! I'm trying to startup the projects using the latest version of vscode, dockers over windows 10...
I following the next steps successfully withouts errors but the

  1. Change the sql sa password
  2. Compile all projects successfully
  3. Then I edit my system32/drivers/etc/hosts file and add the 127.0.0.1 wallet.local
  4. Run the truscert-windows.ps1 to add the localhost certificate
  5. Run docker-compose build & docker-compose -f docker-compose.yml -f docker-compose.override.yml up -d

Do I forgot any steps?

All was fine but the the next containers don't start:
image

docker_nginx logs:

/docker-entrypoint.sh: Configuration complete; ready for start up
2020/11/19 02:28:54 [emerg] 1#1: host not found in upstream "accounts-api" in /etc/nginx/nginx.conf:41
nginx: [emerg] host not found in upstream "accounts-api" in /etc/nginx/nginx.conf:41

Obviously I can't browser any https://wallet.local:8081/ website....
I attached the nginx_config.json configuration file
docker_nginx.log

accounts logs:
standard_init_linux.go:211: exec user process caused "no such file or directory"

docker_accounts-api-seeds logs

Build started...
Build succeeded.
Server=sql1;User Id=sa;Password=XXXX;Database=Accounts;
Applying migration '20200821064304_InitialCreate'.
Done.

NOTE: I verified the SQL connections and tables, all works fine.

I supossed that the main issue is the nginx but I don't know how to fix it!

PD: I install and uninstall some times the dockers images and delete all containers and start again, without success.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions