https://github.com/wenzel/docker-owncloud
Dockerfile to configure and deploy Owncloud with a simplified configuration based on SaltStack
https://github.com/wenzel/docker-owncloud
Last synced: about 1 month ago
JSON representation
Dockerfile to configure and deploy Owncloud with a simplified configuration based on SaltStack
- Host: GitHub
- URL: https://github.com/wenzel/docker-owncloud
- Owner: Wenzel
- License: gpl-2.0
- Created: 2014-08-18T19:50:58.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-02-10T17:32:47.000Z (over 11 years ago)
- Last Synced: 2025-01-02T05:13:13.731Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 230 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
docker-owncloud
===============
Dockerfile for OwnCloud 8
OwnCloud version : `8.0.0`
# Information
This setup will run OwnCloud in Docker, using the Data only containers pattern
for both files and database.
You will end up with the following Docker containers :
- `oc-data-files` : Storage for OwnCloud files (`owncloud/data` and `owncloud/config`)
- `oc-data-db` : Storage for OwnCloud database (`/var/lib/prosgresql/data`)
- `oc-postgres` : Container running the Database (`Postgresql`)
- `oc-server` : Container running the server (`Apache2` on Fedora)
# Step 1 : Data only containers
cd data/
build the image responsible for file storage and configuration :
docker build -t oc-data-files .
then use `./run.sh` to create the Data only containers :
- `oc-data-files`
- `oc-data-db`
# Step 2 : Database setup
cd db/
Edit `init-owncloud-postgres.sh` and configure the database credentials :
- `USERNAME`
- `PASSWORD`
- `DB`
Then build `oc-postgres` image :
docker build -t oc-postgres .
And run it with `./run.sh`
# Step 3 : Run the server
Get back to the top of the repository, and build the `oc-server` image :
docker build -t oc-server .
And use `./run.sh` to run the server !
# OwnCloud setup wizard
- select `postgresql` storage
- change `localhost` to `db` (`db` is the name you choose on the docker command line, when you want to link a container with another. here `--link oc-postgres:db`)
# References
- [OwnCloud in a container](http://www.herr-norbert.de/2014/10/04/docker-owncloud/)