์ˆ˜. 8์›” 13th, 2025

๐ŸŒŸ What is Nextcloud AIO?

Nextcloud All-In-One (AIO) is the official solution to deploy all Nextcloud services with a single command!

  • It is an integrated package: Automatic configuration of all components, including database (MySQL), reverse proxy (Traefik), backup system, etc.
  • Automatic updates: support for one-click updates from the web UI ๐Ÿ”„.
  • Security enhancements: integrated Let’s Encrypt TLS certificate, security enhancement settings by default

—.

โš™๏ธ Prerequisites

  1. install Docker & Docker Compose
    
    # Ubuntu example
    sudo apt update && sudo apt install docker.io docker-compose
    ```bash # Ubuntu example
  2. Prepare a domain
    • Public domain required (for Let’s Encrypt certificate issuance)
    • Edit the hosts file for local testing (192.168.0.10 cloud.yourdomain.com)

—]

๐Ÿณ Create a Docker Compose file

Example docker-compose.yml (based on the official template):

version: '3.8'

services:
  nextcloud-aio:
    container_name: nextcloud-aio
    image: nextcloud/all-in-one:latest
    restart: always
    ports:
      - 80:80
      - 8080:8080
      - 443:443
    volumes:
      - nextcloud_aio:/var/lib/docker
      - /var/run/docker.sock:/var/run/docker.sock:ro
    environment:
      - APACHE_PORT=11000 # Internal Apache port.
      - apache_ip_binding=0.0.0.0.0
      - NEXTCLOUD_DATADIR=/nc_data # Data storage path
      - NEXTCLOUD_MOUNT=/mnt/nas # external storage mount (optional)
      - TRUSTED_PROXIES=192.168.0.0/24

volumes:
  nextcloud_aio:

๐Ÿ” Setup key points

  1. **Port mappings

    • 80`: HTTP redirects
    • 443`: HTTPS traffic
    • 8080`: AIO management interface (for initial setup)
  2. volume settings

    • nextcloud_aio: Store AIO metadata
    • Example of adding a host directory mount:
      volumes:
      - /mnt/ssd/nextcloud:/var/www/html
  3. environment variables

    • trusted_proxies: IP banding when using load balancer/reverse proxy.
    • SKIP_DOMAIN_VALIDATION=true`: Skip domain validation when testing locally

—.

๐Ÿš€ Running and Initialization

  1. Start the service.

    docker-compose up -d
  2. complete configuration (Web UI)

    • Access https://yourdomain.com:8080 โ†’ Follow the wizard to set up: AIO setup screen (1) Create an administrator account โ†’ (2) Specify the data directory โ†’ (3) Confirm the domain
  3. Automate deployment

    • After 5-10 minutes, you can log in to Nextcloud at https://yourdomain.com!

—]

๐Ÿ› ๏ธ Admin Tips & Troubleshooting

๐Ÿ”ง Useful commands

# Check AIO container logs
docker logs nextcloud-aio --tail 100

# Create a backup (AIO interface or CLI)
docker exec nextcloud-aio backup

# Update manually
docker-compose pull && docker-compose up -d

โš ๏ธ Notes

  • Mount /var/run/docker.sock required: required for AIO to create subcontainers
  • Data backup: Regular backup of host volume path (/var/lib/docker/volumes/...)
  • Port Conflict: Stop ports 80, 443 when using existing Nginx/Apache

๐Ÿšจ Troubleshooting common errors

[ERROR] Can't connect to the Docker daemon

โ†’ Check docker.sock permissions:

sudo chmod 666 /var/run/docker.sock # Temporary use in test environment only

—]

๐Ÿ’ก Advanced Utilization

  1. **Interfacing with external storage Add to docker-compose.yml after mounting NAS:

    volumes:
     - /nfs/nextcloud:/mnt/nas

    Select /mnt/nas path in Nextcloud settings โ†’ External Storage app

  2. optimize performance

    environment:
     - PHP_MEMORY_LIMIT=4G
     - OPCACHE_ENABLE=1
  3. Integrate Traefik (replace AIO built-in proxy) Refer to Official Guide

—]

๐ŸŽฏ Why deploy with Docker Compose?

  • Reproducibility: Ensure consistency across dev/test/production environments
  • Extensibility: Easy to integrate additional services such as Redis, OnlyOffice, etc.
  • Manageability: Version control your entire infrastructure with a single file

> ๐Ÿ“Š Benchmark: 70% reduction in design update time with Docker deployments (Source: Nextcloud official report)

—.

โœจ Conclusion

Nextcloud AIO + Docker Compose combination is the fastest way to build an enterprise-grade private cloud!

  • โœ… Even beginners can build a complete Nextcloud environment in less than 30 minutes
  • โœ… Scalable architecture to meet your business needs
  • โœ… Official support ensures stability

Get started now!

mkdir nextcloud-aio && cd nextcloud-aio
nano docker-compose.yml # Paste the example above
docker-compose up -d

> โ˜๏ธ Nextcloud is not just a cloud – it’s the beginning of a complete digital ecosystem! D

๋‹ต๊ธ€ ๋‚จ๊ธฐ๊ธฐ

์ด๋ฉ”์ผ ์ฃผ์†Œ๋Š” ๊ณต๊ฐœ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ํ•„์ˆ˜ ํ•„๋“œ๋Š” *๋กœ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค