collabora/compose.yml

68 lines
1.6 KiB
YAML
Raw Permalink Normal View History

2021-11-29 09:00:22 +00:00
---
2021-04-27 10:30:24 +00:00
version: "3.8"
2021-11-29 09:00:22 +00:00
2021-04-27 10:30:24 +00:00
services:
2021-04-27 11:02:11 +00:00
web:
image: "nginx:1.25.4"
2021-04-27 11:02:11 +00:00
environment:
- STACK_NAME
2021-04-27 11:02:11 +00:00
- DOMAIN=${DOMAIN}
configs:
- source: nginx_conf
target: /etc/nginx/nginx.conf
2021-04-27 10:30:24 +00:00
networks:
- proxy
2021-04-27 11:02:11 +00:00
- internal
2021-04-27 10:30:24 +00:00
deploy:
update_config:
failure_action: rollback
labels:
- "traefik.enable=true"
2021-04-27 11:02:11 +00:00
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
2021-04-27 10:30:24 +00:00
- "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}"
2021-11-29 09:00:22 +00:00
2021-04-27 11:02:11 +00:00
app:
image: "collabora/code:23.05.10.1.1"
cap_add:
- MKNOD
2021-12-25 23:11:23 +00:00
secrets:
- admin_password
2021-04-27 11:02:11 +00:00
configs:
2021-12-15 08:44:05 +00:00
- source: coolwsd_xml
target: /etc/coolwsd/coolwsd.xml
2021-04-27 12:10:54 +00:00
uid: "104" # lool
gid: "106" # lool
2021-04-27 11:02:11 +00:00
environment:
2021-12-25 23:11:23 +00:00
- ADMIN_USERNAME
2021-04-27 11:02:11 +00:00
- DOMAIN=${DOMAIN}
2021-12-25 23:11:23 +00:00
- DONT_GEN_SSL_CERT=true
2021-04-27 11:02:11 +00:00
- NEXTCLOUD_DOMAIN=${NEXTCLOUD_DOMAIN}
2023-01-18 21:03:12 +00:00
- FRAME_ANCESTORS
2021-04-27 11:02:11 +00:00
networks:
- internal
deploy:
labels:
- "coop-cloud.${STACK_NAME}.version=2.7.1+23.05.10.1.1"
2021-11-29 09:00:22 +00:00
2021-04-27 10:30:24 +00:00
networks:
proxy:
external: true
2021-04-27 11:02:11 +00:00
internal:
2021-11-29 09:00:22 +00:00
2021-12-25 23:11:23 +00:00
secrets:
admin_password:
external: true
name: ${STACK_NAME}_admin_password_${SECRET_ADMIN_PASSWORD_VERSION}
2021-04-27 11:02:11 +00:00
configs:
nginx_conf:
name: ${STACK_NAME}_nginx_conf_${NGINX_CONF_VERSION}
file: nginx.conf.tmpl
template_driver: golang
2021-12-15 08:44:05 +00:00
coolwsd_xml:
name: ${STACK_NAME}_coolwsd_xml_${COOLWSD_XML_VERSION}
file: coolwsd.xml.tmpl
2021-04-27 11:02:11 +00:00
template_driver: golang