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

Migrate away from "links" in docker-compose #89

Closed
alanorth opened this issue Mar 7, 2021 · 1 comment
Closed

Migrate away from "links" in docker-compose #89

alanorth opened this issue Mar 7, 2021 · 1 comment
Labels
enhancement New feature or request infrastructure Related to server or deployment

Comments

@alanorth
Copy link
Member

alanorth commented Mar 7, 2021

The Docker documentation says that links are deprecated:

The --link flag is a legacy feature of Docker. It may eventually be removed. Unless you absolutely need to continue using it, we recommend that you use user-defined networks to facilitate communication between two containers instead of using --link.

We currently use links in docker-compose.yml to allow containers to discover each other using their names when using the default Docker network bridge, but we can achieve the same thing by using "user-defined networks".

@alanorth alanorth added enhancement New feature or request infrastructure Related to server or deployment labels Mar 7, 2021
@alanorth
Copy link
Member Author

alanorth commented Mar 7, 2021

Closed in 43681af.

@alanorth alanorth closed this as completed Mar 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request infrastructure Related to server or deployment
Projects
None yet
Development

No branches or pull requests

1 participant