Links between service Rancher Server 1.0.0
Previously, linking between those two container was achieve using a docker-compose.yml for my wordpress container containing:
wordpress: external_links: - mysql:mysql
This was working perfectly before, but not anymore when those containers are within a rancher server.
The documentation about DNS service is not clear for me:
In rancher, my stack is named mysql and my service mysql.
I have tried to link using what
wordpress: external_links: - mysql.mysql:mysql
But this does not works too.
Those two containers are in a custom catalog, the only way right now to make this work is to create and start the two services and then change linking by upgrading the wordpress service afterward.
Any idea ?
I’m i missing something ?
Thanks a lots !
One Solution collect form web for “Links between service Rancher Server 1.0.0”
Here is the solution:
external_links: - mysql.mysql:mysql
Use the following syntax for linking service within a stack:
external_links: - mysql/mysql:mysql
Or more generically:
external_links: - stack_name/service_name:alias_name
Hope this help !