Install owncloud with docker and local directory
I was struggled on installing owncloud barely on ubuntu 18, and spent hours on install and config its dependencies, but failed on database script execution.
During googling to solve my problem, I noticed a dockerized owncloud, and find it’s pretty easy to setup.
Here is the installation/configuration log:
Install docker and docker-compose
Prepare a docker-compose.yml :
Because I have a RDS instance on cloud, and a NAS storage mounted on this server, I was wondering to reuse them. So I removed the volumns and db dependencies from the yml file.
Becuase this owncloud file sharing will be used by very few users, and the VM will have extra charge for CPU usage, I removed redis.
sudo docker-compose up -d to start owncloud, and access it through
Please add port
8080 to your VM’s network route rule.
Add local storage :
Reference this Local storage to add local directory.
- scan files copied to owncloud directory:
docker-compose exec owncloud occ files:scan --all
本文发表于 2020-03-12，最后修改于 2020-03-13。
本站永久域名「 jevy.wang 」，也可搜索「 Jevy Wang's Blog 」找到我。
期待关注我的 「 知乎专栏 」 ，查看最近的文章和动态。