2021-11-25 10:10:06 +00:00
|
|
|
version: "3.8"
|
|
|
|
services:
|
|
|
|
consul:
|
|
|
|
image: consul:1.6.2
|
2024-01-09 16:00:07 +00:00
|
|
|
command:
|
|
|
|
- agent
|
|
|
|
- -server
|
|
|
|
- -bootstrap
|
|
|
|
- -ui
|
|
|
|
- -client
|
|
|
|
- 0.0.0.0
|
|
|
|
- -hcl
|
|
|
|
- 'connect { enabled = true }'
|
2021-11-25 10:10:06 +00:00
|
|
|
|
|
|
|
consul-agent:
|
|
|
|
image: consul:1.6.2
|
2024-01-09 16:00:07 +00:00
|
|
|
command:
|
|
|
|
- agent
|
|
|
|
- -retry-join
|
|
|
|
- consul
|
|
|
|
- -client
|
|
|
|
- 0.0.0.0
|
2021-11-25 10:10:06 +00:00
|
|
|
|
|
|
|
whoami1:
|
|
|
|
image: traefik/whoami
|
|
|
|
hostname: whoami1
|
|
|
|
|
|
|
|
whoami2:
|
|
|
|
image: traefik/whoami
|
|
|
|
hostname: whoami2
|
|
|
|
|
|
|
|
whoami3:
|
|
|
|
image: traefik/whoami
|
|
|
|
hostname: whoami3
|
|
|
|
|
|
|
|
whoamitcp:
|
|
|
|
image: traefik/whoamitcp
|
|
|
|
hostname: whoamitcp
|
|
|
|
|
|
|
|
connect:
|
|
|
|
image: hashicorpnomad/uuid-api:v5
|
|
|
|
environment:
|
|
|
|
PORT: 443
|
|
|
|
BIND: 0.0.0.0
|
|
|
|
CONSUL_HTTP_ADDR: http://consul:8500
|