Add redis support for nextcloud service
This commit is contained in:
parent
d5b1c3fb84
commit
ab964af9c3
1 changed files with 12 additions and 3 deletions
|
@ -735,13 +735,19 @@ nextcloud_systemd_required_systemd_services_list: |
|
||||||
(['docker.service'])
|
(['docker.service'])
|
||||||
+
|
+
|
||||||
([devture_postgres_identifier ~ '.service'] if devture_postgres_enabled and nextcloud_database_hostname == devture_postgres_identifier else [])
|
([devture_postgres_identifier ~ '.service'] if devture_postgres_enabled and nextcloud_database_hostname == devture_postgres_identifier else [])
|
||||||
|
+
|
||||||
|
([redis_identifier ~ '.service'] if redis_enabled and nextcloud_redis_enabled and nextcloud_redis_hostname == redis_identifier else [])
|
||||||
}}
|
}}
|
||||||
|
|
||||||
nextcloud_container_additional_networks: |
|
nextcloud_container_additional_networks: |
|
||||||
{{
|
{{
|
||||||
([mash_playbook_reverse_proxyable_services_additional_network] if mash_playbook_reverse_proxyable_services_additional_network else [])
|
(
|
||||||
+
|
([mash_playbook_reverse_proxyable_services_additional_network] if mash_playbook_reverse_proxyable_services_additional_network else [])
|
||||||
([devture_postgres_container_network] if devture_postgres_enabled and nextcloud_database_hostname == devture_postgres_identifier and nextcloud_container_network != devture_postgres_container_network else [])
|
+
|
||||||
|
([devture_postgres_container_network] if devture_postgres_enabled and nextcloud_database_hostname == devture_postgres_identifier and nextcloud_container_network != devture_postgres_container_network else [])
|
||||||
|
+
|
||||||
|
([redis_container_network] if redis_enabled and nextcloud_redis_enabled and nextcloud_redis_hostname == redis_identifier else [])
|
||||||
|
) | unique
|
||||||
}}
|
}}
|
||||||
|
|
||||||
nextcloud_container_labels_traefik_enabled: "{{ mash_playbook_traefik_labels_enabled }}"
|
nextcloud_container_labels_traefik_enabled: "{{ mash_playbook_traefik_labels_enabled }}"
|
||||||
|
@ -754,6 +760,9 @@ nextcloud_database_port: "{{ '5432' if devture_postgres_enabled else '' }}"
|
||||||
nextcloud_database_username: "nextcloud"
|
nextcloud_database_username: "nextcloud"
|
||||||
nextcloud_database_password: "{{ '%s' | format(mash_playbook_generic_secret_key) | password_hash('sha512', 'db.nextcloud', rounds=655555) | to_uuid }}"
|
nextcloud_database_password: "{{ '%s' | format(mash_playbook_generic_secret_key) | password_hash('sha512', 'db.nextcloud', rounds=655555) | to_uuid }}"
|
||||||
|
|
||||||
|
nextcloud_redis_enabled: false
|
||||||
|
nextcloud_redis_hostname: "{{ redis_identifier if redis_enabled and nextcloud_redis_enabled else '' }}"
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
# #
|
# #
|
||||||
# /nextcloud #
|
# /nextcloud #
|
||||||
|
|
Loading…
Reference in a new issue