Files
docker-compose-files/nextcloud/compose.yaml
T

49 lines
1.3 KiB
YAML
Executable File

services:
nextcloud:
container_name: nextcloud
restart: unless-stopped
labels:
com.hanold.environment: production
hostname: https://nextcloud-app.hanold.online
volumes:
- ./nextcloud-data:/var/www/html
# - /media/webdav/Dokumente:/mnt/WebDav_Dokumente
- /media/Daten/Dokumente:/mnt/Heimserver_Dokumente
tmpfs:
- /tmp:size=1G # Ensures /tmp writable, clears restarts
init: true
ports:
- 9180:80
environment:
- MYSQL_HOST=192.168.178.170
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_PASSWORD=dbpass
- NEXTCLOUD_ADMIN_USER=admin
- NEXTCLOUD_ADMIN_PASSWORD=kNxMAUj1L391QuAWxBkJ
- REDIS_HOST=192.168.178.183
- REDIS_HOST_PORT=9379
- MEMCACHE_HOST=192.168.178.183
- MEMCACHE_PORT=9379
# - PUID=1000
# - PGID=1000
image: nextcloud:latest
deploy:
resources:
limits:
memory: 4G
collabora:
image: collabora/code:latest # Latest stable Jan 2026
restart: unless-stopped
cap_add:
- MKNOD
environment:
- domain=nextcloud-app\.hanold\.online
# - username=admin # Or blank
# - password=yourpass
- extra_params=--o:ssl.enable=false # If internal; true + certs for prod
ports:
- 9380:9980
networks: {}