Skip to content

Instantly share code, notes, and snippets.

@beardcoder
Last active November 28, 2017 18:21
Embed
What would you like to do?
Resolve container by hostname
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