Fix the deploy mode of couchbase.
This commit is contained in:
parent
35ab51ac7b
commit
b73502cb2a
|
@ -35,6 +35,7 @@ open_asfa_couchbase_image: 'couchbase:community'
|
||||||
open_asfa_couchbase_volume_type: 'local'
|
open_asfa_couchbase_volume_type: 'local'
|
||||||
open_asfa_couchbase_volume_o: ""
|
open_asfa_couchbase_volume_o: ""
|
||||||
open_asfa_couchbase_volume_device: ""
|
open_asfa_couchbase_volume_device: ""
|
||||||
|
# open_asfa_couchbase_connect_string: "{{ open_asfa_docker_stack_name }}_couchbase://couchbase"
|
||||||
open_asfa_couchbase_connect_string: "couchbase://couchbase"
|
open_asfa_couchbase_connect_string: "couchbase://couchbase"
|
||||||
open_asfa_couchbase_username: "Administrator"
|
open_asfa_couchbase_username: "Administrator"
|
||||||
# open_asfa_couchbase_password: "use a vault"
|
# open_asfa_couchbase_password: "use a vault"
|
||||||
|
|
|
@ -29,6 +29,9 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- {{ open_asfa_couchbase_volume }}:/opt/couchbase/var
|
- {{ open_asfa_couchbase_volume }}:/opt/couchbase/var
|
||||||
deploy:
|
deploy:
|
||||||
|
mode: replicated
|
||||||
|
replicas: 1
|
||||||
|
endpoint_mode: dnsrr
|
||||||
placement:
|
placement:
|
||||||
constraints: [node.role == worker]
|
constraints: [node.role == worker]
|
||||||
restart_policy:
|
restart_policy:
|
||||||
|
|
Loading…
Reference in New Issue