F
F
fan92rus2019-12-17 10:15:07
Nginx
fan92rus, 2019-12-17 10:15:07

Why doesn't nginx proxy pick up containers?

everything is fine on the local machine. docker-compose.yml
4 container
front-back postgres and reverse proxy - jwilder/nginx-proxy:alpine
if everything is local then it picks up the virtualhost
on the server it turns out like this.

proxy          | dockergen.1 | 2019/12/17 06:54:19 Generated '/etc/nginx/conf.d/default.conf' from 4 containers
proxy          | dockergen.1 | 2019/12/17 06:54:19 Running 'nginx -s reload'
proxy          | dockergen.1 | 2019/12/17 06:54:19 Watching docker events

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2019-12-17
@q2digger

environment variables for virtual hosts set?

environment:
      - VIRTUAL_HOST=whoami.local

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question