Last active
April 1, 2019 19:07
-
-
Save pranavcode/c9b9a59bc5bb4d44a245aacaf3cabd5a to your computer and use it in GitHub Desktop.
Velotio - HashiCorp Consul Part 2 - Enable Consul Connect Sidecar Service for Django App and MongoDB Primary
This file contains hidden or 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
{ | |
"service": { | |
"name": "web", | |
"port": 8000, | |
"tags": [ | |
"web", | |
"application", | |
"urlprefix-/web" | |
], | |
"connect": { | |
"sidecar_service": { | |
"proxy": { | |
"upstreams": [{ | |
"destination_name": "mongo-primary", | |
"local_bind_port": 5501 | |
}] | |
} | |
} | |
}, | |
"check": { | |
"id": "web_app_status", | |
"name": "Web Application Status", | |
"tcp": "localhost:8000", | |
"interval": "30s", | |
"timeout": "20s" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment