generated from coop-cloud/example
60 lines
1.7 KiB
YAML
60 lines
1.7 KiB
YAML
---
|
|
version: "3.8"
|
|
|
|
services:
|
|
app:
|
|
image: "collabora/code:26.04.3.2.1"
|
|
cap_add:
|
|
- MKNOD
|
|
secrets:
|
|
- admin_password
|
|
healthcheck:
|
|
test: ["CMD", "/usr/bin/coolwsd", "--probe"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
configs:
|
|
- source: coolwsd_xml
|
|
target: /etc/coolwsd/coolwsd.xml
|
|
uid: "1001" # cool user
|
|
gid: "1001" # cool user
|
|
environment:
|
|
- ADMIN_USERNAME
|
|
- DOMAIN=${DOMAIN}
|
|
- DONT_GEN_SSL_CERT=true
|
|
- NEXTCLOUD_DOMAIN=${NEXTCLOUD_DOMAIN}
|
|
- FRAME_ANCESTORS
|
|
- DICTIONARIES=${DICTIONARIES:-de_DE en_GB en_US es_ES fr_FR it nl pt_BR pt_PT}
|
|
- extra_params=--o:ssl.enable=false --o:ssl.termination=true ${COLLABORA_ENV_PARAMS}
|
|
networks:
|
|
- proxy
|
|
deploy:
|
|
labels:
|
|
- "coop-cloud.${STACK_NAME}.version=4.2.3+25.04.9.4.1"
|
|
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"
|
|
- "traefik.enable=true"
|
|
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=9980"
|
|
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
|
|
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
|
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|
|
internal:
|
|
|
|
secrets:
|
|
admin_password:
|
|
external: true
|
|
name: ${STACK_NAME}_admin_password_${SECRET_ADMIN_PASSWORD_VERSION}
|
|
|
|
configs:
|
|
nginx_conf:
|
|
name: ${STACK_NAME}_nginx_conf_${NGINX_CONF_VERSION}
|
|
file: nginx.conf.tmpl
|
|
template_driver: golang
|
|
coolwsd_xml:
|
|
name: ${STACK_NAME}_coolwsd_xml_${COOLWSD_XML_VERSION}
|
|
file: coolwsd.xml.tmpl
|
|
template_driver: golang
|