services: nextcloud-aio-mastercontainer: image: ghcr.io/nextcloud-releases/all-in-one:latest container_name: nextcloud-aio-mastercontainer volumes: - nextcloud_aio_mastercontainer:/mnt/docker-aio-config - /var/run/docker.sock:/var/run/docker.sock:ro network_mode: bridge ports: - 8070:8080 environment: APACHE_PORT: 11000 APACHE_ADDITIONAL_NETWORK: nginx-bridge # https://github.com/nextcloud/all-in-one#how-to-adjust-borgs-retention-policy BORG_RETENTION_POLICY: --keep-within=7d --keep-weekly=4 --keep-monthly=6 # Host path for data directory. Can't change after initial run! NEXTCLOUD_DATADIR: /home/gib/Public/Nextcloud/Server # https://github.com/nextcloud/all-in-one#how-to-allow-the-nextcloud-container-to-access-directories-on-the-host # NEXTCLOUD_MOUNT: /mnt/ # https://github.com/nextcloud/all-in-one#how-to-adjust-the-upload-limit-for-nextcloud NEXTCLOUD_UPLOAD_LIMIT: 32G # https://github.com/nextcloud/all-in-one#how-to-adjust-the-max-execution-time-for-nextcloud NEXTCLOUD_MAX_TIME: 3600 # https://github.com/nextcloud/all-in-one#how-to-adjust-the-php-memory-limit-for-nextcloud NEXTCLOUD_MEMORY_LIMIT: 4096M # https://github.com/nextcloud/all-in-one#how-to-trust-user-defined-certification-authorities-ca # NEXTCLOUD_TRUSTED_CACERTS_DIR: /path/to/my/cacerts # https://github.com/nextcloud/all-in-one#how-to-change-the-nextcloud-apps-that-are-installed-on-the-first-startup NEXTCLOUD_STARTUP_APPS: deck twofactor_totp calendar contacts notes NEXTCLOUD_ENABLE_NVIDIA_GPU: true SKIP_DOMAIN_VALIDATION: true # TALK_PORT: 3478 # WATCHTOWER_DOCKER_SOCKET_PATH: /var/run/docker.sock security_opt: ["seccomp:unconfined", "label:disable"] devices: ["/dev/dri:/dev/dri"] init: true restart: unless-stopped tty: true runtime: nvidia deploy: resources: reservations: devices: - driver: nvidia count: 1 capabilities: [gpu] volumes: nextcloud_aio_mastercontainer: name: nextcloud_aio_mastercontainer # CANT CHANGE networks: nginx-bridge: external: true