Skip to content

Instantly share code, notes, and snippets.

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
You can’t perform that action at this time.