This is a docker image for nextcloud running on Alpine php7 container with runit process supervisor.
- 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).
| Name | Default 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_PREFIX | nc_ |
| NEXTCLOUD_ADMIN_USER | [empty]: username of the admin account |
| NEXTCLOUD_ADMIN_PASSWORD | [empty]: password of the admin account |
| CORE_MEMORY_LIMIT | 512M |
The full list of php7 environment variables is available on alpine-php7 github repository.
- /nextcloud
/nextcloud/config//nextcloud/appstore//nextcloud/data/nextcloud/themes
- /var/www
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.
In the admin panel, you should switch from AJAX cron to cron (system cron).
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.


