All Projects → crazy-max → docker-nextcloud

crazy-max / docker-nextcloud

Licence: MIT license
Nextcloud Docker image

Programming Languages

Dockerfile
14818 projects
HCL
1544 projects

Projects that are alternatives of or similar to docker-nextcloud

self-hosted-services
A core set of privacy-preserving services that can be easily self-hosted via Docker Compose.
Stars: ✭ 123 (-41.15%)
Mutual labels:  letsencrypt, nextcloud, traefik
Vpstoolbox
一键安装Trojan-GFW代理,Hexo博客,Nextcloud等應用程式。
Stars: ✭ 1,080 (+416.75%)
Mutual labels:  letsencrypt, nextcloud, mariadb
Hermes-Secure-Email-Gateway
Hermes Secure Email Gateway is a Free Open Source Ubuntu 18.04 or 20.04 Server based Email Gateway that provides Spam, Virus and Malware protection, full in-transit and at-rest email encryption as well as email archiving. It features the latest email authentication techniques such as SPF, DKIM and DMARC.
Stars: ✭ 35 (-83.25%)
Mutual labels:  letsencrypt, mariadb
workfromhome-with-docker
HTML5 based remote desktop gateway using Apache Guacamole and Traefik Reverse Proxy including AD authentication and 2-FA
Stars: ✭ 42 (-79.9%)
Mutual labels:  letsencrypt, traefik
full-stack-flask-couchdb
Full stack, modern web application generator. Using Flask, CouchDB as database, Docker, Swagger, automatic HTTPS and more.
Stars: ✭ 28 (-86.6%)
Mutual labels:  letsencrypt, traefik
howto
Dumping ground for various HowTo documents that I produce
Stars: ✭ 58 (-72.25%)
Mutual labels:  cron, ssmtp
wordpress-ansible-playbook
An ansible playbook for setting up production and staging WordPress site(s). Nginx, php7.3, ssl ready (via letsencrypt), mariadb.
Stars: ✭ 85 (-59.33%)
Mutual labels:  letsencrypt, mariadb
mypaas
MyPaas is an Ansible playbook for startups or small companies which want to build a modern and fully automated infrastructure.
Stars: ✭ 24 (-88.52%)
Mutual labels:  letsencrypt, nextcloud
Letsencrypt Webfaction
LetsEncrypt utility client for WebFaction hosts.
Stars: ✭ 362 (+73.21%)
Mutual labels:  letsencrypt, cron
Full Stack Fastapi Postgresql
Full stack, modern web application generator. Using FastAPI, PostgreSQL as database, Docker, automatic HTTPS and more.
Stars: ✭ 7,635 (+3553.11%)
Mutual labels:  letsencrypt, traefik
Dockerfiles
Discontinued. Fork at your will.
Stars: ✭ 384 (+83.73%)
Mutual labels:  nextcloud, alpine-linux
Serverpilot Letsencrypt
Automate the installation of Let's Encrypt SSL on the free plan of ServerPilot
Stars: ✭ 129 (-38.28%)
Mutual labels:  letsencrypt, cron
mmb
Set of Dockerfiles and assets related to them for building Docker images with different services
Stars: ✭ 34 (-83.73%)
Mutual labels:  nextcloud, mariadb
MySB
MySB (MySeedBox) is more than a simplified installation script of a multi-users Seedbox. There are many solutions to install a Seedbox, but we never talk about safety and regular operations. MySB could be renamed MySSB (MySecuredSeedBox).
Stars: ✭ 105 (-49.76%)
Mutual labels:  letsencrypt, nextcloud
docker-traefik-nextcloud-nginx
docker compose files for traefik nextcloud and nginx
Stars: ✭ 36 (-82.78%)
Mutual labels:  nextcloud, traefik
docker-qbittorrent
qBittorrent Docker image based on Alpine Linux
Stars: ✭ 42 (-79.9%)
Mutual labels:  alpine-linux, traefik
traefik-letsencrypt-compose
Basic Traefik configuration which includes automatic Let’s Encrypt certificate management and password protected dashboard
Stars: ✭ 38 (-81.82%)
Mutual labels:  letsencrypt, traefik
Dockerweb
A docker-powered bash script for shared web hosting management. The ultimate Docker LAMP/LEMP Stack.
Stars: ✭ 89 (-57.42%)
Mutual labels:  letsencrypt, mariadb
Guacamole Install Rhel 7
Apache Guacamole installation bash script for RHEL 7 and CentOS 7 including options for Nginx, HTTPS, SSL, LDAP, Let's Encrypt certificates and more
Stars: ✭ 174 (-16.75%)
Mutual labels:  letsencrypt, mariadb
Manuale
A fully manual Let's Encrypt/ACME client
Stars: ✭ 201 (-3.83%)
Mutual labels:  letsencrypt

Latest Version Build Status Docker Stars Docker Pulls
Become a sponsor Donate Paypal

About

Nextcloud Docker image with advanced features.

Note

Want to be notified of new releases? Check out 🔔 Diun (Docker Image Update Notifier) project!


Features

Build locally

git clone https://github.com/crazy-max/docker-nextcloud.git
cd docker-nextcloud

# Build image and output to docker (default)
docker buildx bake

# Build multi-platform image
docker buildx bake image-all

Image

Registry Image
Docker Hub crazymax/nextcloud
GitHub Container Registry ghcr.io/crazy-max/nextcloud

Following platforms for this image are available:

$ docker run --rm mplatform/mquery crazymax/nextcloud:latest
Image: crazymax/nextcloud:latest
 * Manifest List: Yes
 * Supported platforms:
   - linux/amd64
   - linux/arm/v6
   - linux/arm/v7
   - linux/arm64
   - linux/ppc64le
   - linux/s390x

Environment variables

General

  • TZ: The timezone assigned to the container (default UTC)
  • PUID: Nextcloud user id (default 1000)
  • PGID: Nextcloud group id (default 1000)
  • MEMORY_LIMIT: PHP memory limit (default 512M)
  • UPLOAD_MAX_SIZE: Upload max size (default 512M)
  • CLEAR_ENV: Clear environment in FPM workers (default yes)
  • OPCACHE_MEM_SIZE: PHP OpCache memory consumption (default 128)
  • LISTEN_IPV6: Enable IPv6 for Nginx (default true)
  • APC_SHM_SIZE: APCu memory size (default 128M)
  • REAL_IP_FROM: Trusted addresses that are known to send correct replacement addresses (default 0.0.0.0/32)
  • REAL_IP_HEADER: Request header field whose value will be used to replace the client address (default X-Forwarded-For)
  • LOG_IP_VAR: Use another variable to retrieve the remote IP address for access log_format on Nginx. (default remote_addr)

Nextcloud

  • HSTS_HEADER: HTTP Strict Transport Security header value (default max-age=15768000; includeSubDomains)
  • XFRAME_OPTS_HEADER: X-Frame-Options header value (default SAMEORIGIN)
  • RP_HEADER: Referrer Policy header value (default strict-origin)
  • SUBDIR: Subdir to use. Read this section for more info.
  • DB_TYPE: Database type (mysql, pgsql or sqlite) (default sqlite)
  • DB_NAME: Database name (default nextcloud)
  • DB_USER: Username for database (default nextcloud)
  • DB_PASSWORD: Password for database user
  • DB_HOST: Database host (default db)

💡 DB_PASSWORD_FILE can be used to fill in the value from a file, especially for Docker's secrets feature.

Cron

⚠️ Only used if you enable and run a sidecar cron container

  • SIDECAR_CRON: Set to 1 to enable sidecar cron mode (default 0)
  • CRON_PERIOD: Periodically execute Nextcloud cron (eg. */5 * * * *)

Previews generator

⚠️ Only used if you enable and run a sidecar previews generator container

  • SIDECAR_PREVIEWGEN: Set to 1 to enable sidecar previews generator mode (default 0)
  • PREVIEWGEN_PERIOD: Periodically execute pre-generation of previews (eg. 0 * * * *)

News Updater

⚠️ Only used if you enable and run a sidecar news updater container

  • SIDECAR_NEWSUPDATER: Set to 1 to enable sidecar news updater mode (default 0)
  • NC_NEWSUPDATER_THREADS: How many feeds should be fetched in parallel (default 10)
  • NC_NEWSUPDATER_TIMEOUT: Maximum number of seconds for updating a feed (default 300)
  • NC_NEWSUPDATER_INTERVAL: Update interval between fetching the next round of updates in seconds (default 900)
  • NC_NEWSUPDATER_LOGLEVEL: Log granularity, info will log all urls and received data, error will only log errors (default error)

Volumes

  • /data: Contains config, data folders, installed user apps (not core ones), session, themes, tmp folders

⚠️ Note that the volume should be owned by the user/group with the specified PUID and PGID. If you don't give the volume correct permissions, the container may not start.

Ports

  • 8000: HTTP port

Usage

Docker Compose

Docker compose is the recommended way to run this image. Copy the content of folder examples/compose in /var/nextcloud/ on your host for example. Edit the compose and env files with your preferences and run the following commands:

docker-compose up -d
docker-compose logs -f

Command line

You can also use the following minimal command:

docker run -d -p 8000:8000 --name nextcloud \
  -v "$(pwd)/data:/data" \
  crazymax/nextcloud:latest

Upgrade

To upgrade to the latest version of Nextcloud, pull the newer image and launch the container. Nextcloud will upgrade automatically:

docker-compose pull
docker-compose up -d

Notes

First installation

If you run the container for the first time, the installation will be automatic using the DB_* environment variables.
Then open your browser to configure your admin account.

OCC command

If you want to use the occ command to perform common server operations like manage users, encryption, passwords, LDAP setting, and more, type:

docker-compose exec nextcloud occ

Cron sidecar

If you want to enable the cronjob, you have to run a "sidecar" container (see cron service in docker-compose.yml example) or run a simple container like this:

docker run -d --name nextcloud_cron \
  --env-file $(pwd)/nextcloud.env \
  -e "SIDECAR_CRON=1" \
  -e "CRON_PERIOD=*/5 * * * *" \
  -v "$(pwd)/data:/data" \
  crazymax/nextcloud:latest

And do not forget to choose Cron as background jobs:

Background jobs

Previews generator sidecar

To execute pre-generation of previews through the Preview Generator plugin, you have to run a "sidecar" container (see cron service in docker-compose.yml example) or run a simple container like this:

docker run -d --name nextcloud_previewgen \
  --env-file $(pwd)/nextcloud.env \
  -e "SIDECAR_PREVIEWGEN=1" \
  -e "PREVIEWGEN_PERIOD=0 * * * *" \
  -v "$(pwd)/data:/data" \
  crazymax/nextcloud:latest

Nextcloud News Updater

If you want to enable the Nextcloud News Updater, you have to run a "sidecar" container (see news_updater service in docker-compose.yml example) or run a simple container like this:

docker run -d --name nextcloud_news_updater \
  --env-file $(pwd)/nextcloud.env \
  -e "SIDECAR_NEWSUPDATER=1" \
  -e "NC_NEWSUPDATER_THREADS=10" \
  -e "NC_NEWSUPDATER_TIMEOUT=300" \
  -e "NC_NEWSUPDATER_INTERVAL=900" \
  -e "NC_NEWSUPDATER_LOGLEVEL=error" \
  -v "$(pwd)/data:/data" \
  crazymax/nextcloud:latest

And do not forget to disable Use system cron for updates in news settings:

Background jobs

Email server

You can use our SMTP relay msmtpd service published on port 2500 and declared in our docker-compose.yml:

Email server config

Redis cache

Redis is recommended, alongside APCu to make Nextcloud faster. If you want to enable Redis, deploy a redis container (see docker-compose file) and add this to your config.php:

    'memcache.local' => '\OC\Memcache\APCu',
    'memcache.distributed' => '\OC\Memcache\Redis',
    'memcache.locking' => '\OC\Memcache\Redis',
    'redis' => array(
        'host' => 'redis',
        'port' => 6379,
    ),

Running in a subdir

If you want to access your Nextcloud installation in a subdir (like /nextcloud), you have to set the SUBDIR environment variable and also add PathPrefixStrip:/nextcloud to your frontend rule if you use Traefik. Do not forget to remove includeSubDomains option in HSTS_HEADER if used.

Contributing

Want to contribute? Awesome! The most basic way to show your support is to star the project, or to raise issues. You can also support this project by becoming a sponsor on GitHub or by making a Paypal donation to ensure this journey continues indefinitely!

Thanks again for your support, it is much appreciated! 🙏

License

MIT. See LICENSE for more details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].