Created
June 17, 2020 05:10
-
-
Save velotiotech/4b69cde165e1ed8e235a67d026fbaeec to your computer and use it in GitHub Desktop.
Velotio - HashiCorp Consul Part 2 - Django configuration settings for connecting MongoDB instance on different host using Djongo
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
... | |
DATABASES = { | |
'default': { | |
'ENGINE': 'djongo', | |
'NAME': 'db', | |
'HOST': 'mongodb://mongo-primary.service.consul', | |
'PORT': 27017, | |
} | |
} | |
... | |
@velotiotech |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment