generated from coop-cloud/example
86 lines
2.2 KiB
YAML
86 lines
2.2 KiB
YAML
---
|
|
version: "3.8"
|
|
|
|
services:
|
|
web:
|
|
image: "nginx:1.31.6"
|
|
environment:
|
|
- STACK_NAME
|
|
- DOMAIN=${DOMAIN}
|
|
configs:
|
|
- source: nginx_conf
|
|
target: /etc/nginx/nginx.conf
|
|
networks:
|
|
- proxy
|
|
- internal
|
|
deploy:
|
|
update_config:
|
|
failure_action: rollback
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
|
|
- "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}"
|
|
healthcheck:
|
|
test:
|
|
[
|
|
"CMD-SHELL",
|
|
"curl -s -N localhost/hosting/capabilities | grep Collabora",
|
|
]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 10
|
|
start_period: 5m
|
|
|
|
app:
|
|
image: "collabora/code:26.04.4.1.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:
|
|
- internal
|
|
deploy:
|
|
labels:
|
|
- "coop-cloud.${STACK_NAME}.version=5.1.0+26.04.4.1.1"
|
|
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"
|
|
|
|
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
|