Files
docker-compose/nextcloud/docker-compose.yml
2025-06-02 17:17:50 +02:00

46 lines
2.0 KiB
YAML

# https://github.com/nextcloud/all-in-one/tree/main
# https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md#adapting-the-sample-web-server-configurations-below
# https://raju.dev/nextcloud-aio-install-with-docker-compose-and-reverse-proxy/
# REDIS
# sysctl vm.overcommit_memory=1
# echo vm.overcommit_memory=1 > /etc/sysctl.d/memory-overcommit.conf
services:
nextcloud-aio-mastercontainer:
image: nextcloud/all-in-one:latest
init: true
restart: always
container_name: nextcloud-aio-mastercontainer
mem_limit: 512m
volumes:
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config
- /var/run/docker.sock:/var/run/docker.sock:ro
network_mode: bridge
ports:
- 3010:8080
environment:
- AIO_DISABLE_BACKUP_SECTION=true
- APACHE_PORT=11000
- APACHE_IP_BINDING=127.0.0.1
- FULLTEXTSEARCH_JAVA_OPTIONS="-Xms1024M -Xmx1024M" # Allows to adjust the fulltextsearch java options. See https://github.com/nextcloud/all-in-one#how-to-adjust-the-fulltextsearch-java-options
- SKIP_DOMAIN_VALIDATION=true
# BORG_RETENTION_POLICY: --keep-within=7d --keep-weekly=4 --keep-monthly=6 # Allows to adjust borgs retention policy. See https://github.com/nextcloud/all-in-one#how-to-adjust-borgs-retention-policy
#- AIO_COMMUNITY_CONTAINERS= "local-ai memories" # Community containers https://github.com/nextcloud/all-in-one/tree/main/community-containers
- COLLABORA_SECCOMP_DISABLED=false
- NEXTCLOUD_DATADIR=/mnt/ncdata
- NEXTCLOUD_MOUNT=/mnt/
- NEXTCLOUD_UPLOAD_LIMIT=10G
- NEXTCLOUD_MAX_TIME=3600
- NEXTCLOUD_MEMORY_LIMIT=1024M
- NEXTCLOUD_STARTUP_APPS=deck twofactor_totp calendar contacts notes
- NEXTCLOUD_ADDITIONAL_APKS=imagemagick
- NEXTCLOUD_ADDITIONAL_PHP_EXTENSIONS=imagick
- TALK_PORT=3480
- WATCHTOWER_DOCKER_SOCKET_PATH=/var/run/docker.sock
volumes:
nextcloud_aio_mastercontainer:
name: nextcloud_aio_mastercontainer
# https://github.com/nextcloud/all-in-one/blob/main/compose.yaml