← Back to all

Nextcloud

Estimated

A full cloud suite — files, calendar, contacts, office — on your own box. Powerful, but heavy.

ReplacesGoogle Drive / Dropbox ($120/yr)
Memory footprint500 MB idle · 1.3 GB peak
Architecturesamd64 / arm64
LicenseAGPL-3.0 · Hard

Watch out

Preview generation and PHP-FPM workers balloon RAM, and major upgrades can break apps. Pin versions and upgrade one major at a time.

Optional modules

  • Preview generationidle ±50 MB · peak ±500 MB

Zero-open-port Compose snippet

Includes mem_limit and 127.0.0.1 binding. Open in Planner to combine with Tailscale/Cloudflare & .env.

# Generated by NASPicks (https://naspicks.com/planner/)
# Hardware: UGREEN NASync DXP2800 (8 GB, ugos) | Peak est: 1.3 GB / 6.7 GB
# Zero-open-port default: web ports bind to 127.0.0.1 and are reached via tailscale.
# Every service includes mem_limit (peak x 1.2) to help prevent host OOM freezes.

services:
  nextcloud:
    image: nextcloud:30-apache
    container_name: nextcloud
    restart: unless-stopped
    mem_limit: 1152m
    ports:
      - "127.0.0.1:8080:80"
    environment:
      - TZ=${TZ}
      - MYSQL_HOST=nextcloud-db
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
      - MYSQL_PASSWORD=${NEXTCLOUD_DB_PASSWORD}
      - REDIS_HOST=nextcloud-redis
    volumes:
      - ${DATA_DIR}/nextcloud/html:/var/www/html
    depends_on:
      - nextcloud-db
      - nextcloud-redis
    networks:
      - naspicks

  nextcloud-db:
    image: mariadb:11.4
    container_name: nextcloud_db
    restart: unless-stopped
    mem_limit: 384m
    environment:
      - MYSQL_ROOT_PASSWORD=${NEXTCLOUD_DB_ROOT_PASSWORD}
      - MYSQL_PASSWORD=${NEXTCLOUD_DB_PASSWORD}
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
    volumes:
      - nextcloud_db:/var/lib/mysql
    networks:
      - naspicks

  nextcloud-redis:
    image: redis:7-alpine
    container_name: nextcloud_redis
    restart: unless-stopped
    mem_limit: 128m
    networks:
      - naspicks

volumes:
  nextcloud_db:

networks:
  naspicks:
    driver: bridge

Comments (GitHub Discussions)

GitHub Discussions ↗

Comments load lazily to keep pages fast everywhere.