Answer the question
In order to leave comments, you need to log in
Docker nginx losing 403 host?
Hello.
There are 2 problems.
If I start nginx in a container and the certbot name doesn't exist yet (it's running in a different container), then nginx doesn't start.
nginx | 2019/01/24 16:17:27 [emerg] 1#1: host not found in upstream "certbot" in /etc/nginx/acme:2
nginx | nginx: [emerg] host not found in upstream "certbot" in /etc/nginx/acme:2
location /.well-known {
proxy_pass http://certbot;
}
Answer the question
In order to leave comments, you need to log in
In docker_compose.yml for services: nginx add depends_on: certbot
Use only the name from services instead of IP.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question