Skip to content

Repository files navigation

nextcloud

Build StatusDocker PullsDocker StarsMicroBadger Layers (tag)MicroBadger Size (tag)License: MIT

nextcloud

This is a docker image for nextcloud running on Alpine php7 container with runit process supervisor.

Features

  • Based on Alpine Linux with runit process supervisor.
  • Bundled with PHP 7.
  • Automatic installation using environment variables.
  • OPCache (opcocde), APCu (local) installed and configured.
  • system cron task running.
  • MySQL, PostgreSQL and sqlite3 support.
  • Redis, FTP, SMB, LDAP, IMAP support.
  • Preconfigured with nexcloud recommandations.
  • Environment variables provided (see below).

Nextcloud Environment variables

NameDefault value
SQLITE_DATABASE[empty]
MYSQL_HOST[empty]
MYSQL_DATABASE[empty]
MYSQL_USER[empty]
MYSQL_PASSWORD[empty]
POSTGRES_HOST[empty]
POSTGRES_DB[empty]
POSTGRES_USER[empty]
POSTGRES_PASSWORD[empty]
NEXTCLOUD_TABLE_PREFIXnc_
NEXTCLOUD_ADMIN_USER[empty]: username of the admin account
NEXTCLOUD_ADMIN_PASSWORD[empty]: password of the admin account
CORE_MEMORY_LIMIT512M

Php Environment variables

The full list of php7 environment variables is available on alpine-php7 github repository.

Volumes

  • /nextcloud
    • /nextcloud/config/
    • /nextcloud/appstore/
    • /nextcloud/data
    • /nextcloud/themes
  • /var/www

Docker-compose

Take a look at this example
You will have a good example on how to run nextcloud with nextcloud-fpm, Redis and caddy web server.

Configure

In the admin panel, you should switch from AJAX cron to cron (system cron).

Tip : how to use occ command

There is a script for that, so you shouldn't bother to log into the container, set the right permissions, and so on.
Just use docker exec -it nexcloud occ command.

About

A safe home for all your data

Topics

Resources

Stars

2 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages