Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Communication between sites #1

Open
chamalis opened this issue Jul 11, 2017 · 3 comments
Open

Communication between sites #1

chamalis opened this issue Jul 11, 2017 · 3 comments

Comments

@chamalis
Copy link

Hello, thanks for sharing this.

How would you suggest that site1 container should communicate with site2 container through proxy container? So that when I make an http request from site1's container to 'site2.example.com' it would route through reverse_proxy_proxy_1 container instead of going through the public internet.?

I would like to avoid using docker container names (e.g site1_web_1) since they are not valid urls and they cause problems in most web frameworks if used as host headers

@Vickey-Wu
Copy link

Vickey-Wu commented Apr 16, 2018

hello, i got an error when follow your tutorial, please help, thanks a lot!

ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a version of "2" (or "2.0") and place your service definitions under the serviceskey, or omit theversion key and place your service definitions at the root of the file to use version 1. For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/

docker-compose --version
docker-compose version 1.8.0, build unknown

docker --version
Docker version 18.03.0-ce, build 0520e24

@techdev00
Copy link

@Vickey-Wu

Visit this github page and follow the girl command but where the version number is change it to the latest based on your Docker version. I see yours is 18.03.0 so your compose version might be 3.0 (double check).

Once you've done that change the 3 in your compose file to '2' . for some reason it complains about the 3.

I hope this helps.

@cbrown17
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants