Resolve container by hostname
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
web: | |
image: 'nginx:alpine' | |
networks: # This resolves the container by host name if you compose more then one container | |
default: | |
aliases: | |
- ${APP_HOST}.${DOMAIN_NAME} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment