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:
|
2024-02-16 15:31:20 +00:00
|
|
|
image: "nginx:1.25.4"
|
2021-04-27 11:02:11 +00:00
|
|
|
environment:
|
2021-12-15 08:07:02 +00:00
|
|
|
- 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:
|
2024-04-03 14:17:49 +00:00
|
|
|
image: "collabora/code:23.05.10.1.1"
|
2021-12-15 08:07:02 +00:00
|
|
|
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
|
2021-12-28 00:51:15 +00:00
|
|
|
deploy:
|
|
|
|
labels:
|
2024-04-03 14:17:49 +00:00
|
|
|
- "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
|