Created
June 17, 2020 05:30
-
-
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
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
{ | |
"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