Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mkeeler/consul-docker-test
Terraform Modules and Examples to help with setting up test Consul clusters in Docker.
https://github.com/mkeeler/consul-docker-test
Last synced: 23 days ago
JSON representation
Terraform Modules and Examples to help with setting up test Consul clusters in Docker.
- Host: GitHub
- URL: https://github.com/mkeeler/consul-docker-test
- Owner: mkeeler
- License: mpl-2.0
- Created: 2019-05-24T13:54:44.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-01T14:02:49.000Z (over 1 year ago)
- Last Synced: 2024-10-04T17:24:51.907Z (about 1 month ago)
- Language: HCL
- Size: 204 KB
- Stars: 11
- Watchers: 1
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# consul-docker-test
Terraform Modules and Examples to help with setting up test Consul clusters in Docker.## Modules
There is a server module as well as a client module for configuring servers and clients within a datacenter respectively. The
server module has two important outputs `join` and `wan_join`. These can be used as `extra_args` to further invocations of
these modules to cause other clients or servers to join the cluster properly.## Examples
* `simple-with-ui` - Runs a single 3 server DC + 1 client agent with the UI enabled.
The UI client will be port mapped so that 8500/8600 are available outside the container.* `multi-dc` - Runs two datacenters (primary, secondary). Each DC has 3 servers and 1 client with the UI enabled.
The primary UI/DNS will be on 8500/8600 and the secondary on 8501/8601. This setup uses 3 docker
networks (primary, secondary, wan). The client agents only are connected to either the primary or
secondary and servers get connect to one of those + wan. Cross-DC communications happen over the
wan network.* `mesh-gateway` - This starts out as multi-dc but then adds a bunch more. See the [README](mesh-gateways/README.md)