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:
|
||||
netgrimoire:
|
||||
|
|
@ -5,7 +6,7 @@ networks:
|
|||
|
||||
services:
|
||||
consul-server:
|
||||
image: consul:latest
|
||||
image: hashicorp/consul:latest # Changed from consul:latest
|
||||
hostname: "consul-{{.Task.Slot}}"
|
||||
command: >
|
||||
agent -server
|
||||
|
|
@ -34,7 +35,7 @@ services:
|
|||
- consul-data:/consul/data
|
||||
deploy:
|
||||
mode: replicated
|
||||
replicas: 3 # Changed from 1 to 3
|
||||
replicas: 3
|
||||
placement:
|
||||
constraints:
|
||||
- node.role == manager
|
||||
|
|
@ -62,7 +63,7 @@ services:
|
|||
depends_on:
|
||||
- consul-server
|
||||
deploy:
|
||||
mode: global # Runs on ALL 6 nodes
|
||||
mode: global
|
||||
restart_policy:
|
||||
condition: any
|
||||
delay: 5s
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue