xvc
This commit is contained in:
parent
84a9b23676
commit
a801fc9dfc
1 changed files with 4 additions and 3 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
version: "3.8"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
netgrimoire:
|
netgrimoire:
|
||||||
|
|
@ -5,7 +6,7 @@ networks:
|
||||||
|
|
||||||
services:
|
services:
|
||||||
consul-server:
|
consul-server:
|
||||||
image: consul:latest
|
image: hashicorp/consul:latest # Changed from consul:latest
|
||||||
hostname: "consul-{{.Task.Slot}}"
|
hostname: "consul-{{.Task.Slot}}"
|
||||||
command: >
|
command: >
|
||||||
agent -server
|
agent -server
|
||||||
|
|
@ -34,7 +35,7 @@ services:
|
||||||
- consul-data:/consul/data
|
- consul-data:/consul/data
|
||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
replicas: 3 # Changed from 1 to 3
|
replicas: 3
|
||||||
placement:
|
placement:
|
||||||
constraints:
|
constraints:
|
||||||
- node.role == manager
|
- node.role == manager
|
||||||
|
|
@ -62,7 +63,7 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
- consul-server
|
- consul-server
|
||||||
deploy:
|
deploy:
|
||||||
mode: global # Runs on ALL 6 nodes
|
mode: global
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: any
|
condition: any
|
||||||
delay: 5s
|
delay: 5s
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue