Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 17, 2020 05:20
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/871b8e19cee02a8964ad5d02f749423e to your computer and use it in GitHub Desktop.
Save velotiotech/871b8e19cee02a8964ad5d02f749423e to your computer and use it in GitHub Desktop.
Velotio - HashiCorp Consul Part 2 - MongoDB Replica Set - Run Consul agent on a MongoDB node
consul agent -bind 33.10.0.3 \
-advertise 33.10.0.3 \
-join consul_server \
-node mongo_1 \
-dns-port 53 \
-data-dir /data \
-config-dir /etc/consul.d \
-enable-local-script-checks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment