docker-compose/nextcloud/docker-compose.yml

40 lines
2.1 KiB
YAML
Raw Normal View History

2024-09-28 16:25:50 +02:00
# 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/
services:
nextcloud-aio-mastercontainer:
image: nextcloud/all-in-one:latest
init: true
restart: always
container_name: nextcloud-aio-mastercontainer
2024-12-26 15:52:55 +01:00
mem_limit: 2g
2024-09-28 16:25:50 +02:00
volumes:
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config
- /var/run/docker.sock:/var/run/docker.sock:ro
network_mode: bridge
ports:
2024-12-26 14:40:12 +01:00
- 3010:8080
2024-09-28 16:25:50 +02:00
environment:
- AIO_DISABLE_BACKUP_SECTION=true
- APACHE_PORT=11000
- APACHE_IP_BINDING=127.0.0.1
2024-09-28 16:25:50 +02:00
- 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
- COLLABORA_SECCOMP_DISABLED=false
- NEXTCLOUD_DATADIR=/mnt/ncdata
- NEXTCLOUD_MOUNT=/mnt/
- NEXTCLOUD_UPLOAD_LIMIT=10G
- NEXTCLOUD_MAX_TIME=3600
- NEXTCLOUD_MEMORY_LIMIT=1024M
# NEXTCLOUD_TRUSTED_CACERTS_DIR: /path/to/my/cacerts # CA certificates in this directory will be trusted by the OS of the nexcloud container (Useful e.g. for LDAPS) See See https://github.com/nextcloud/all-in-one#how-to-trust-user-defined-certification-authorities-ca
- NEXTCLOUD_STARTUP_APPS=deck twofactor_totp calendar contacts notes bookmarks
- NEXTCLOUD_ADDITIONAL_APKS=imagemagick
- NEXTCLOUD_ADDITIONAL_PHP_EXTENSIONS=imagick
# TALK_PORT=3478
2024-12-08 14:28:57 +01:00
- WATCHTOWER_DOCKER_SOCKET_PATH=/var/run/docker.sock # Needs to be specified if the docker socket on the host is not located in the default '/var/run/docker.sock'. Otherwise mastercontainer updates will fail. For macos it needs to be '/var/run/docker.sock'
2024-09-28 16:25:50 +02:00
volumes:
nextcloud_aio_mastercontainer:
name: nextcloud_aio_mastercontainer # This line is not allowed to be changed as otherwise the built-in backup solution will not work