Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 17, 2020 05:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/a0a6c9802f8e4d8941b27174648fa452 to your computer and use it in GitHub Desktop.
Save velotiotech/a0a6c9802f8e4d8941b27174648fa452 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
{
"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