chore: add central collabora service
instead of providing one for owncloud and nextcloud separately Signed-off-by: Bert-Jan Fikse <bert-jan@whatwedo.ch>
This commit is contained in:
parent
064b939d06
commit
d3d7bb9ba5
6 changed files with 84 additions and 30 deletions
|
|
@ -27,8 +27,6 @@ nextcloud_use_ssl: true
|
|||
|
||||
nextcloud_enable_collabora: true
|
||||
nextcloud_collabora_domain: "office.local.test"
|
||||
nextcloud_collabora_service_name: collabora
|
||||
nextcloud_collabora_image: collabora/code:latest
|
||||
nextcloud_collabora_disable_cert_verification: false
|
||||
|
||||
nextcloud_use_s3_storage: false
|
||||
|
|
|
|||
|
|
@ -109,34 +109,6 @@ services:
|
|||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if nextcloud_enable_collabora %}
|
||||
collabora:
|
||||
image: {{ nextcloud_collabora_image }}
|
||||
restart: always
|
||||
environment:
|
||||
domain: ^{{ nextcloud_domain | replace('.', '\\.') }}$
|
||||
extra_params: >-
|
||||
--o:ssl.enable=false
|
||||
--o:ssl.termination=true
|
||||
--o:net.frame_ancestors=https://{{ nextcloud_domain }}
|
||||
cap_add:
|
||||
- MKNOD
|
||||
networks:
|
||||
- {{ nextcloud_traefik_network }}
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.docker.network={{ nextcloud_traefik_network }}
|
||||
- traefik.http.routers.{{ nextcloud_collabora_service_name }}.rule=Host(`{{ nextcloud_collabora_domain }}`)
|
||||
- traefik.http.services.{{ nextcloud_collabora_service_name }}.loadbalancer.server.port=9980
|
||||
{% if nextcloud_use_ssl %}
|
||||
- traefik.http.routers.{{ nextcloud_collabora_service_name }}.entrypoints=websecure
|
||||
- traefik.http.routers.{{ nextcloud_collabora_service_name }}.tls=true
|
||||
{% else %}
|
||||
- traefik.http.routers.{{ nextcloud_collabora_service_name }}.entrypoints=web
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
networks:
|
||||
{{ nextcloud_backend_network }}:
|
||||
{{ nextcloud_traefik_network }}:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue