{"id":16540486,"url":"https://github.com/sameersbn/docker-owncloud","last_synced_at":"2025-03-21T09:32:22.401Z","repository":{"id":33412551,"uuid":"37057786","full_name":"sameersbn/docker-owncloud","owner":"sameersbn","description":"Experimental owncloud image for docker","archived":false,"fork":false,"pushed_at":"2019-07-06T13:59:57.000Z","size":159,"stargazers_count":34,"open_issues_count":4,"forks_count":15,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-15T21:47:44.773Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sameersbn.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-08T09:26:50.000Z","updated_at":"2024-01-30T08:44:36.000Z","dependencies_parsed_at":"2022-07-19T22:08:18.993Z","dependency_job_id":null,"html_url":"https://github.com/sameersbn/docker-owncloud","commit_stats":null,"previous_names":[],"tags_count":34,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameersbn%2Fdocker-owncloud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameersbn%2Fdocker-owncloud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameersbn%2Fdocker-owncloud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameersbn%2Fdocker-owncloud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sameersbn","download_url":"https://codeload.github.com/sameersbn/docker-owncloud/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244130270,"owners_count":20402753,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T18:52:34.800Z","updated_at":"2025-03-21T09:32:22.097Z","avatar_url":"https://github.com/sameersbn.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Docker Repository on Quay.io](https://quay.io/repository/sameersbn/owncloud/status \"Docker Repository on Quay.io\")](https://quay.io/repository/sameersbn/owncloud)\n\n# sameersbn/owncloud:10.0.10-0\n\n- [Introduction](#introduction)\n  - [Contributing](#contributing)\n  - [Issues](#issues)\n- [Getting started](#getting-started)\n  - [Installation](#installation)\n  - [Quickstart](#quickstart)\n  - [Persistence](#persistence)\n- [Maintenance](#maintenance)\n  - [Creating backups](#creating-backups)\n  - [Restoring backups](#restoring-backups)\n  - [Upgrading](#upgrading)\n  - [Shell Access](#shell-access)\n\n# Introduction\n\n`Dockerfile` to create a [Docker](https://www.docker.com/) container image for [ownCloud](https://owncloud.org/).\n\nownCloud is a self-hosted open source application for file hosting and sharing.\n\n## Contributing\n\nIf you find this image useful here's how you can help:\n\n- Send a pull request with your awesome features and bug fixes\n- Help users resolve their [issues](../../issues?q=is%3Aopen+is%3Aissue).\n- Support the development of this image with a [donation](http://www.damagehead.com/donate/)\n\n## Issues\n\nBefore reporting your issue please try updating Docker to the latest version and check if it resolves the issue. Refer to the Docker [installation guide](https://docs.docker.com/installation) for instructions.\n\nSELinux users should try disabling SELinux using the command `setenforce 0` to see if it resolves the issue.\n\nIf the above recommendations do not help then [report your issue](../../issues/new) along with the following information:\n\n- Output of the `docker version` and `docker info` commands\n- The `docker run` command or `docker-compose.yml` used to start the image. Mask out the sensitive bits.\n- Please state if you are using [Boot2Docker](http://www.boot2docker.io), [VirtualBox](https://www.virtualbox.org), etc.\n\n# Getting started\n\n## Installation\n\nAutomated builds of the image are available on [Dockerhub](https://hub.docker.com/r/sameersbn/owncloud) and is the recommended method of installation.\n\n\u003e **Note**: Builds are also available on [Quay.io](https://quay.io/repository/sameersbn/owncloud)\n\n```bash\ndocker pull sameersbn/owncloud:10.0.10-0\n```\n\nAlternatively you can build the image yourself.\n\n```bash\ndocker build -t sameersbn/owncloud github.com/sameersbn/docker-owncloud\n```\n\n## Quickstart\n\nThe quickest way to start using this image is with [docker-compose](https://docs.docker.com/compose/).\n\n```bash\nwget https://raw.githubusercontent.com/sameersbn/docker-owncloud/master/docker-compose.yml\n```\n\nUpdate the `OWNCLOUD_URL` environment variable in the `docker-compose.yml` file with the url from which ownCloud will be externally accessible.\n\n```bash\ndocker-compose up\n```\n\nAlternatively, you can start ownCloud manually using the Docker command line.\n\nStep 1. Launch a PostgreSQL container\n\n```bash\ndocker run --name owncloud-postgresql -itd --restart=always \\\n  --env 'DB_NAME=owncloud_db' \\\n  --env 'DB_USER=owncloud' --env 'DB_PASS=password' \\\n  --volume /srv/docker/owncloud/postgresql:/var/lib/postgresql \\\n  sameersbn/postgresql:9.6-4\n```\n\nStep 2. Launch the ownCloud php-fpm container\n\n```bash\ndocker run --name owncloud -itd --restart=always \\\n  --env OWNCLOUD_URL=http://cloud.example.com:10080 \\\n  --link owncloud-postgresql:postgresql \\\n  --volume /srv/docker/owncloud/owncloud:/var/lib/owncloud \\\n  sameersbn/owncloud:10.0.10-0 app:owncloud\n```\n\nStep 3. Launch a NGINX frontend container\n\n```bash\ndocker run --name owncloud-nginx -itd --restart=always \\\n  --link owncloud:php-fpm \\\n  --publish 10080:80 \\\n  sameersbn/owncloud:10.0.10-0 app:nginx\n```\n\nPoint your browser to `http://cloud.example.com:10080` and login using the default username and password:\n\n* username: **admin**\n* password: **password**\n\n\u003e **Note**\n\u003e\n\u003e Use the `OWNCLOUD_ADMIN_USER` and `OWNCLOUD_ADMIN_PASSWORD` variables to create a custom admin user and password on the firstrun instead of the default credentials.\n\n## Persistence\n\nFor ownCloud to preserve its state across container shutdown and startup you should mount a volume at `/var/lib/owncloud`.\n\n\u003e *The [Quickstart](#quickstart) command already mounts a volume for persistence.*\n\nSELinux users should update the security context of the host mountpoint so that it plays nicely with Docker:\n\n```bash\nmkdir -p /srv/docker/owncloud\nchcon -Rt svirt_sandbox_file_t /srv/docker/owncloud\n```\n\n# Maintenance\n\n## Creating backups\n\nThe image allows users to create backups of the ownCloud installation using the `app:backup:create` command or the `owncloud-backup-create` helper script. The generated backup consists of configuration files, uploaded files and the sql database.\n\nBefore generating a backup — stop and remove the running instance.\n\n```bash\ndocker stop owncloud \u0026\u0026 docker rm owncloud\n```\n\nRelaunch the container with the `app:backup:create` argument.\n\n```bash\ndocker run --name owncloud -it --rm [OPTIONS] \\\n  sameersbn/owncloud:10.0.10-0 app:backup:create\n```\n\nThe backup will be created in the `backups/` folder of the [Persistent](#persistence) volume. You can change the location using the `OWNCLOUD_BACKUPS_DIR` configuration parameter.\n\n\u003e **NOTE**\n\u003e\n\u003e Backups can also be generated on a running instance using:\n\u003e\n\u003e  ```bash\n\u003e  docker exec -it owncloud owncloud-backup-create\n\u003e  ```\n\nBy default backups are held indefinitely. Using the `OWNCLOUD_BACKUPS_EXPIRY` parameter you can configure how long (in seconds) you wish to keep the backups. For example, setting `OWNCLOUD_BACKUPS_EXPIRY=604800` will remove backups that are older than 7 days. Old backups are only removed when creating a new backup, never automatically.\n\n## Restoring Backups\n\nBackups created using instructions from the [Creating backups](#creating-backups) section can be restored using the `app:backup:restore` argument.\n\nBefore restoring a backup — stop and remove the running instance.\n\n```bash\ndocker stop owncloud \u0026\u0026 docker rm owncloud\n```\n\nRelaunch the container with the `app:backup:restore` argument. Ensure you launch the container in the interactive mode `-it`.\n\n```bash\ndocker run --name owncloud -it --rm [OPTIONS] \\\n  sameersbn/owncloud:10.0.10-0 app:backup:restore\n```\n\nA list of existing backups will be displayed. Select a backup you wish to restore.\n\nTo avoid this interaction you can specify the backup filename using the `BACKUP` argument to `app:backup:restore`, eg.\n\n```bash\ndocker run --name owncloud -it --rm [OPTIONS] \\\n  sameersbn/owncloud:10.0.10-0 app:backup:restore BACKUP=1417624827_owncloud_backup.tar\n```\n\n## Upgrading\n\nTo upgrade to newer releases:\n\n  1. Download the updated Docker image:\n\n  ```bash\n  docker pull sameersbn/owncloud:10.0.10-0\n  ```\n\n  2. Stop the currently running image:\n\n  ```bash\n  docker stop owncloud\n  ```\n\n  3. Remove the stopped container\n\n  ```bash\n  docker rm -v owncloud\n  ```\n\n  4. Start the updated image\n\n  ```bash\n  docker run -name owncloud -itd \\\n    [OPTIONS] \\\n    sameersbn/owncloud:10.0.10-0\n  ```\n\n## Shell Access\n\nFor debugging and maintenance purposes you may want access the containers shell. If you are using Docker version `1.3.0` or higher you can access a running containers shell by starting `bash` using `docker exec`:\n\n```bash\ndocker exec -it owncloud bash\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsameersbn%2Fdocker-owncloud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsameersbn%2Fdocker-owncloud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsameersbn%2Fdocker-owncloud/lists"}