better postinstall apps

This commit is contained in:
rnsrk 2026-03-30 11:10:11 +02:00
parent fb22e9cab4
commit 71a8dac389
4 changed files with 302 additions and 4 deletions

View file

@ -1,7 +1,7 @@
# Nextcloud-Stack
services:
nextcloud:
image: nextcloud:31.0-fpm
image: nextcloud:32-fpm
container_name: nextcloud
depends_on:
- nextcloud-redis
@ -10,6 +10,7 @@ services:
- NEXTCLOUD_ADMIN_USER=${NEXTCLOUD_ADMIN_USER:-admin}
- NEXTCLOUD_ADMIN_PASSWORD=${NEXTCLOUD_ADMIN_PASSWORD:-admin}
- NEXTCLOUD_DEFAULT_PHONE_REGION=DE
- NEXTCLOUD_DEFAULT_LANGUAGE=${NEXTCLOUD_DEFAULT_LANGUAGE:-de}
- ONLYOFFICE_JWT_SECRET=${ONLYOFFICE_JWT_SECRET}
- POSTGRES_DB=${NEXTCLOUD_DB_NAME}
- POSTGRES_HOST=${NEXTCLOUD_DB_HOST}
@ -18,6 +19,8 @@ services:
- OVERWRITEPROTOCOL=https
- OVERWRITEHOST=${NEXTCLOUD_DOMAIN}
- REDIS_HOST=nextcloud-redis
- TRUSTED_PROXIES=172.22.0.0/16 172.19.0.0/16
- COLLABORA_DOMAIN=${COLLABORA_DOMAIN}
labels:
- "traefik.enable=false"
volumes:
@ -61,6 +64,36 @@ services:
- nextcloud
restart: unless-stopped
collabora:
image: collabora/code:latest
container_name: nextcloud-collabora
environment:
- domain=${NEXTCLOUD_DOMAIN}
- aliasgroup1=https://${NEXTCLOUD_DOMAIN}:443
- username=${COLLABORA_USERNAME}
- password=${COLLABORA_PASSWORD}
- extra_params=--o:ssl.enable=false --o:ssl.termination=true --o:welcome.enable=false --o:logging.level=warning
- dictionaries=de_DE en_GB en_US
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik"
- "traefik.http.routers.collabora.rule=Host(`${COLLABORA_DOMAIN}`)"
- "traefik.http.routers.collabora.entrypoints=web,websecure"
- "traefik.http.routers.collabora.middlewares=https-redirect"
- "traefik.http.routers.collabora.tls=true"
- "traefik.http.routers.collabora.tls.certresolver=le"
- "traefik.http.services.collabora.loadbalancer.server.port=9980"
- "traefik.http.services.collabora.loadbalancer.server.scheme=http"
networks:
- nextcloud
- traefik
restart: unless-stopped
cap_add:
- MKNOD
- SYS_ADMIN
security_opt:
- apparmor:unconfined
volumes:
nextcloud-data:
name: nextcloud-data