ansible-role-open-asfa-test/templates/open-asfa-couchbase-docker-...

51 lines
1.3 KiB
Plaintext
Raw Normal View History

2022-12-02 14:59:47 +01:00
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" %}
2022-12-02 15:05:25 +01:00
2022-12-02 14:59:47 +01:00
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 }}
2022-12-02 15:44:22 +01:00
{% if open_asfa_behind_haproxy %}
- haproxy-public
{% endif %}
2022-12-02 14:59:47 +01:00
volumes:
- {{ open_asfa_couchbase_volume }}:/opt/couchbase/var
deploy:
2023-04-28 12:32:58 +02:00
mode: replicated
replicas: 1
endpoint_mode: dnsrr
2022-12-02 14:59:47 +01:00
placement:
constraints: [node.role == worker]
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
2023-04-27 16:11:06 +02:00
resources:
limits:
cpus: '{{ open_asfa_couchbase_cpu_limit }}'
memory: {{ open_asfa_couchbase_memory_limit }}
reservations:
cpus: '{{ open_asfa_couchbase_cpu_reservation }}'
memory: {{ open_asfa_couchbase_memory_reservation }}
2022-12-02 14:59:47 +01:00
logging:
driver: 'journald'