docker-gen icon indicating copy to clipboard operation
docker-gen copied to clipboard

Upstream remote web server

Open mvthul opened this issue 5 years ago • 0 comments

Hi guys i got a question. Im trying to use jwilder with letsencrypt companion to automate ssl en nginx config. I have almost figured it out to run a dummy container for creating ssl config and nginx config to forward to a non host/docker container web server.

Im using: docker run -d
--name test
-e VIRTUAL_HOST=Sub.domain.com
-e VIRTUAL_PORT=80
-e UPSTREAM_NAME=192.168.1.1
-e LETSENCRYPT_HOST=Sub.domain.com
-e [email protected]
cwempe/docker-dummy:latest

The only thing whats making this not work is that docker-gen creates the config with the upstream server ip of the dummy container. If I change the ip to the remote web server and reload nginx it works!!

Only if I restart nginx-proxy it will fail offcourse because it’s getting recreated.

Is there a option or possibilitie to set a custom server IP in the config?

Example: Sub.domain.com upstream sub.domain.com { ## Can be connected with "default" network # sub server custom server ip;

Any help would be great if this works than Linux with nginx from jwilder is the best there is webserver I could possible imagine <3

#remotewebsservergojwilder

mvthul avatar Mar 26 '20 23:03 mvthul