Skip to content

⚠️ DEPRECATED ::: nextcloud container on debian jessie with apache and php - ssl only

Notifications You must be signed in to change notification settings

ServerContainers/nextcloud

Repository files navigation

Docker Nextcloud-Server Container (servercontainers/nextcloud)

maintained by ServerContainers

FAQ - All you need to know about the servercontainers Containers

What is it

This Dockerfile (available as servercontainers/nextcloud) gives you a Nextcloud-Server with Apache/PHP on Debian.

On the first start (or if Database Table is empty), the setup is executed as specified by environment variables.

For Configuration of the Server you use environment Variables.

If you want to use this in a public/production environment, use this behind a proxy - e.g. servercontainers/nginx.

It's based on the debian:jessie Image

View in Docker Registry servercontainers/nextcloud

View in GitHub ServerContainers/nextcloud

Environment variables and defaults

General

  • TZ
    • default Europe/Berlin - change if you want a different TimeZone
  • RELATIVE_URL
    • default / - the path nextcloud will be available e.g. '/nextcloud' etc.
  • HSTS_HEADERS
    • default none - if set to any value, the hsts headers will be enabled

NEXTCLOUD

  • CUSTOM_PLUGINS

    • default none - list of additional nextcloud plugins to install e.g. 'calendar contacts'
  • ADMIN_USER

    • default none - name for the admin user for the nextcloud installation
  • ADMIN_PASSWORD

    • default none - password for the admin user for the nextcloud installation
  • KEEP_INSTALLATION_FOLDERS

    • default none - if set to any value, the installation folders config.bak apps.bak and data.bak will be kept (makes troubles with code analysis)

DB Connection

to enable automatic installation you need to set all of the following envs.

  • DB_TYPE
    • default none - set this to the database type (mysql etc.)
      • sqlite
      • mysql
      • pgsql
  • DB_HOST
    • default none - set to db host
  • DB_NAME
    • default none - name of the db for the nextcloud instance
  • DB_USER
    • default none - name for the user for the db connection
  • DB_PASSWORD
    • default none - password for the user for the db connection

Configuration Options

You might want to edit the config.php manualy to add and modify custom settings.

Mail sending configuration

'mail_smtpmode' => 'sendmail',
'mail_from_address' => 'admin',
'mail_domain' => 'nextcloud.my.tld',

IMAP Auth (gmail example))

'user_backends' => array (
    0 => array (
            'class'     => 'OC_User_IMAP',
            'arguments' => array (
                              0 => '{imap.gmail.com:993/imap/ssl}'
                              ),
    ),
),

Misc

Get current NextCloud version

wget -O - https://nextcloud.com/changelog/ 2> /dev/null | tr '>' '\n' | tr '<' '\n' | grep Version | head -n1 | awk '{print $2}'

About

⚠️ DEPRECATED ::: nextcloud container on debian jessie with apache and php - ssl only

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages