From c6cf9b71dbff9c303652b303a37c023d425e1523 Mon Sep 17 00:00:00 2001 From: Trent Summerfield Date: Wed, 9 Mar 2016 19:03:46 +1100 Subject: [PATCH 1/2] 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: From 90d915567b1a9e9f090d1e9672301f096c80bc5a Mon Sep 17 00:00:00 2001 From: Trent Summerfield Date: Wed, 9 Mar 2016 22:28:48 +1100 Subject: [PATCH 2/2] Add description of container linking to README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 35f899958..843c345aa 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ http { } ``` Your Transmission WebUI should now be avaliable at "your.host.ip.addr:8080/transmission/web/". -Change the port in the docker run command if 8080 is not suitable for you. +Change the port in the docker run command if 8080 is not suitable for you. Alternatively if you use container linking, either directly or via docker-compose, you can replace "your.host.ip.addr" with the name or alias of the openvpn container. ## Known issues Some have encountered problems with DNS resolving inside the docker container.