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

Add support external links in docker-compose.yml #1117

Closed
cedvan opened this issue Mar 16, 2015 · 6 comments
Closed

Add support external links in docker-compose.yml #1117

cedvan opened this issue Mar 16, 2015 · 6 comments

Comments

@cedvan
Copy link

cedvan commented Mar 16, 2015

Step 1

State containers on host : API is ready

CONTAINER ID        IMAGE                                 COMMAND                CREATED             STATUS              PORTS                         NAMES         
9b463eaae4a6        cedvan/nginx-php-fpm:1.4.6-5.5.9  "/bin/sh -c 'php5-fp   7 minutes ago       Up 7 minutes        80/tcp, 443/tcp              project_api_1  

Step 2

docker-compose.yml on back project :

back:
    image: huttopia/nginx-php-fpm:1.4.6-5.5.9
    ...
    links:
        - project_api_1:api

Step 3

Result of fig up -d back :

Service "back" has a link to service "project_api_1" which does not exist.

Question

Is it possible to add support external links in docker-compose.yml ?

@dnephin
Copy link

dnephin commented Mar 16, 2015

http://docs.docker.com/compose/yml/#external_links

@cedvan
Copy link
Author

cedvan commented Mar 16, 2015

Oh yeah !

Thanks you :)

@ivorscott
Copy link

Yes!

@luiz-gustavo-agostinho
Copy link

No more external links? I can't find documentation for it.

@dnephin
Copy link

dnephin commented Nov 3, 2016

https://docs.docker.com/compose/compose-file/#/externallinks

@techmexdev
Copy link

https://docs.docker.com/compose/compose-file/#external_links

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

No branches or pull requests

5 participants