Last active
November 28, 2017 18:21
-
-
Save beardcoder/59f6c7b369f9aebbfebb1f5ef0d604d7 to your computer and use it in GitHub Desktop.
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