37 lines
861 B
Plaintext
37 lines
861 B
Plaintext
|
version: '3.6'
|
||
|
|
||
|
networks:
|
||
|
{% if open_asfa_behind_haproxy %}
|
||
|
haproxy-public:
|
||
|
external: true
|
||
|
{% endif %}
|
||
|
{{ open_asfa_docker_network }}:
|
||
|
|
||
|
volumes:
|
||
|
{{ open_asfa_couchbase_volume }}:
|
||
|
{% if open_asfa_couchbase_volume_type == "nfs4" %}
|
||
|
driver: local
|
||
|
driver_opts:
|
||
|
type: {{ open_asfa_couchbase_volume_type }}
|
||
|
o: "{{ open_asfa_couchbase_volume_o }}"
|
||
|
device: "{{ open_asfa_couchbase_volume_device }}"
|
||
|
{% endif %}
|
||
|
|
||
|
services:
|
||
|
couchbase:
|
||
|
image: {{ open_asfa_couchbase_image }}
|
||
|
networks:
|
||
|
- {{ open_asfa_docker_network }}
|
||
|
volumes:
|
||
|
- {{ open_asfa_couchbase_volume }}:/opt/couchbase/var
|
||
|
deploy:
|
||
|
placement:
|
||
|
constraints: [node.role == worker]
|
||
|
restart_policy:
|
||
|
condition: on-failure
|
||
|
delay: 5s
|
||
|
max_attempts: 3
|
||
|
window: 120s
|
||
|
logging:
|
||
|
driver: 'journald'
|