Giter Site home page Giter Site logo

craeckie / docker-owncloud Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pschmitt/docker-owncloud

0.0 2.0 0.0 244 KB

Reasonably configurable Docker image for ownCloud - archlinux, NGINX and PHP-FPM

Home Page: https://registry.hub.docker.com/u/pschmitt/owncloud/

License: GNU General Public License v3.0

Shell 100.00%

docker-owncloud's Introduction

ownCloud Docker Image

Deploy ownCloud easily.

Setup

The quickest way to get it up is:

docker run -d -p 80:80 pschmitt/owncloud

Then go to http://localhost/ and log in as admin, password: changeme.

Environment variables

  • DB_TYPE: Either sqlite, mysql, pgsql or oci. Default: sqlite
  • DB_HOST: Database host. Default: localhost
  • DB_NAME: Database name. Default: owncloud
  • DB_USER: Database user. Default: owncloud
  • DB_PASS: Database password. Default: owncloud
  • DB_TABLE_PREFIX: Prefix for all database tables. Default: oc_
  • ADMIN_USER: Username of the admin. Default: admin
  • ADMIN_PASS: Password of the admin account. Default: changeme
  • DATA_DIR: ownCloud data dir. Default: /var/www/owncloud/data
  • HTTPS_ENABLED: Whether to enable HTTPS (true or false). Default: false
  • TIMEZONE: Timezone. Default: UTC

Database setup

The image currently supports linking against a MySQL or PostgreSQL container. This container MUST be named db for this to work.

Volumes

  • /var/www/owncloud/apps: ownCloud's plugin/apps directory
  • /var/www/owncloud/config: ownCloud's config directory
  • /var/www/owncloud/data: ownCloud's data directory
  • /etc/ssl/certs/owncloud.crt: SSL certificate. Required if HTTPS_ENABLED is true.
  • /etc/ssl/private/owncloud.key: SSL private key. Required if HTTPS_ENABLED is true.
  • /var/log/nginx: Nginx logs

Systemd service file

[Unit]
Description=Dockerized ownCloud
After=docker.service docker-postgres.service
Requires=docker.service docker-postgres.service

[Service]
TimeoutStartSec=0
Restart=always
ExecStartPre=-/usr/bin/docker kill owncloud
ExecStartPre=-/usr/bin/docker rm owncloud
ExecStartPre=/usr/bin/docker pull pschmitt/owncloud
ExecStart=/usr/bin/docker run --name=owncloud -h owncloud.example.com \
  -p 80:80 -p 443:443 \
  --link postgres:db \
  -e 'DB_NAME=owncloud' \
  -e 'DB_USER=owncloud' \
  -e 'DB_PASS=PassWord' \
  -e 'ADMIN_USER=admin' \
  -e 'ADMIN_PASS=admin' \
  -e 'TIMEZONE=Europe/Berlin' \
  -e 'HTTPS_ENABLED=true' \
  -v /srv/docker/owncloud/apps:/var/www/owncloud/apps \
  -v /srv/docker/owncloud/config:/var/www/owncloud/config \
  -v /srv/docker/owncloud/data:/var/www/owncloud/data \
  -v /srv/docker/owncloud/owncloud.crt:/etc/ssl/certs/owncloud.crt \
  -v /srv/docker/owncloud/owncloud.key:/etc/ssl/certs/owncloud.key \
  pschmitt/owncloud

[Install]
Alias=owncloud.service
WantedBy=multi-user.target

Run occ commands

Provided owncloud is the name of your container:

docker exec -it owncloud occ help

docker-owncloud's People

Contributors

pschmitt avatar r0l1 avatar craeckie avatar mikew avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.