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 :
Referenced this Installing with Docker
and this yml file to make my own docker-compose.yml file.
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.
1 | version: '2.1' |
Use command sudo docker-compose up -d
to start owncloud, and access it through server_ip:8080
.
Please add port 8080
to your VM’s network route rule.
Add local storage :
Reference this Local storage to add local directory.
usefull notes
- scan files copied to owncloud directory:
docker-compose exec owncloud occ files:scan --all
专题:
news
本文发表于 2020-03-12,最后修改于 2020-03-13。
本站永久域名「 jevy.wang 」,也可搜索「 Jevy Wang's Blog 」找到我。
期待关注我的 「 知乎专栏 」 ,查看最近的文章和动态。
上一篇 « Package AWS Lambda function 下一篇 » Add an image layer to react mapbox gl