Home Catalog Nextcloud
Productivity

Nextcloud

A comprehensive self-hosted productivity and collaboration suite offering secure file storage, online document editing, calendar, and contacts synchronization.

ARM64 & AMD64
Docker & Rootless Podman
100% Self-Hosted (Zero Lock-in)
RAM Profile: Medium
Default Port: Port 8080

Why this Configuration?

Quick Start (Standalone Docker Compose)

The snippet below is immediately ready to run in any standard Docker or Podman environment:

services:
  nextcloud-app:
    image: nextcloud:stable
    container_name: nextcloud-app
    restart: always
    labels:
      - "com.centurylinklabs.watchtower.enable=false"
    depends_on:
      - nextcloud-db
      - nextcloud-redis
    ports:
      - "8080:80"
    networks:
      - njorddeploy_net
      - nextcloud-internal
    volumes:
      - "./data/nextcloud/data:/var/www/html"
    environment:
      TZ: "Europe/Amsterdam"
      MYSQL_PASSWORD: "ChangeMeSecurePassword123!"
      MYSQL_DATABASE: "nextcloud_db"
      MYSQL_USER: "nextcloud_user"
      MYSQL_HOST: "nextcloud-db"
      REDIS_HOST: "nextcloud-redis"
      NEXTCLOUD_TRUSTED_DOMAINS: "nextcloud.home.lan"
      MAIL_FROM_ADDRESS: "nextcloud"
      MAIL_DOMAIN: "example.com"
      SMTP_HOST: "smtp.example.com"
      SMTP_PORT: "587"
      SMTP_SECURE: "tls"
      SMTP_AUTHTYPE: "LOGIN"
      SMTP_AUTH: "true"
      SMTP_NAME: "notifications@example.com"
      SMTP_PASSWORD: "ChangeMeSecurePassword123!"

networks:
  njorddeploy_net:
  nextcloud-internal:
    name: nextcloud-internal

Start the service directly via the command line: docker compose up -d

Configuration & Environment Variables

Key configuration parameters and defaults derived from the NjordDeploy component template:

Variable Default Value Description
PORT_NEXTCLOUD 8080 Port to access the Nextcloud web interface.
NEXTCLOUD_DATA_PATH /opt/njorddeploy/data/nextcloud/data Host path for storing Nextcloud application data and files.
NEXTCLOUD_TRUSTED_DOMAINS nextcloud.home.lan Space-separated list of domains Nextcloud will trust.
NEXTCLOUD_MAIL_FROM_ADDRESS nextcloud The sender name for system notifications.
NEXTCLOUD_MAIL_DOMAIN example.com The email domain for system notifications.
NEXTCLOUD_MAIL_SMTPHOST smtp.example.com The SMTP server address for outgoing mails.
NEXTCLOUD_MAIL_SMTPPORT 587 The SMTP port (e.g. 587 or 465).
NEXTCLOUD_MAIL_SMTPSECURE tls SMTP security layer (tls or ssl).
NEXTCLOUD_MAIL_SMTPNAME notifications@example.com The email address used to log into the SMTP server.
NEXTCLOUD_MAIL_SMTPPASSWORD *None* The password for the SMTP user.

Ecosystem & Enterprise Integration

Effortless Management with NjordDeploy

Deploy, monitor, and update this service with a single click on your own hardware via the NjordDeploy Configurator.