From c6cf9b71dbff9c303652b303a37c023d425e1523 Mon Sep 17 00:00:00 2001 From: Trent Summerfield Date: Wed, 9 Mar 2016 19:03:46 +1100 Subject: [PATCH] Add a link from nginx to openvpn in docker-compose I had some trouble getting nginx to reverse-proxy to transmission using my local IP address. The solution in the end was to add a link from the nginx container to the openvpn container. This causes docker-compose to map the name 'openvpn' to the IP address of the actual container at start up. This would also allow you to include a portable nginx.conf file in the repository that didn't require the user to change anything. Let me know if you would like me to open a second pull request adding a copy of my nginx.conf that works with this. --- docker-compose.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index aa483eb70..a6a61bea8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,6 +14,8 @@ openvpn: nginx: image: library/nginx + links: + - openvpn ports: - "8080:8080" volumes: