Sign inSign up

d4v1d31/owncloud

By d4v1d31

Updated over 10 years ago

Simple OwnCloud container based on alpine and nginx.

Image
1

3.1K

d4v1d31/owncloud repository overview

Owncloud Docker Container

All you need to build a docker container of OwnCloud. This container is based on aphine and contains the OwnCloud apps contacts, documents and calendar. Also there is no tls/ssl support. For transport encryption you should use a separate nginx reverse proxy.

Run with existing config

To run this container you need an existing owncloud config and data directory

docker run --name owncloud -v $PWD/config:/owncloud/config -v $PWD/data:/owncloud/data d4v1d31/owncloud

Depending on your database you should link this container to a database container.

Run OwnCloud for the first time

You could set the following Envirenment variables for the first run without existing configuration or database:

VariableDefaultDescription
DBTYPEmysqlType of database (only mysql supportet yet)
DBNAMEowncloudDatabase name
DBHOSTmysqldbHostname or address to database
DBUSERrootDatabase Username for OwnCloud
DBPASSpasswordPassword for database username
ADMINadminUsername for OwnCloud administrator
ADMINPASSpasswordPassword for OwnCloud administrator

Or run with the default settings like this:

docker run --name db -e MYSQL_ROOT_PASSWORD=password -d mariadb
docker run --name owncloud -v $PWD/config:/owncloud/config \
                           -v $PWD/data:/owncloud/data \
                           -p 80:80 \
                           --link db:mysqldb d4v1d31/owncloud

Add more OwnCloud apps

To add more apps copy the download link of the app and add two lines like this to the Dockerfile:

ADD	https://github.com/owncloud/calendar/releases/download/v1.0/calendar.tar.gz /tmp/
RUN	tar -xzf /tmp/calendar.tar.gz -C /owncloud/apps/

Additional the app must be enable at container start, so you should add a line like the following to the start.sh:

$ocdir/occ app:enable calendar

Now rebuild the image.

Tag summary

Content type

Image

Digest

Size

133.6 MB

Last updated

over 10 years ago

docker pull d4v1d31/owncloud