简体   繁体   English

seafile docker-如何持久化配置/使容器成为一次性

[英]seafile docker - how to persist config/make container disposable

I'm building a seafile docker based on https://github.com/JensErat/docker-seafile and https://github.com/foxel/seafile-docker , but can't figure out exactly where's all the configuration seafile uses. 我正在基于https://github.com/JensErat/docker-seafilehttps://github.com/foxel/seafile-docker构建一个seafile码头工人,但无法弄清楚seafile使用的所有配置在哪里。

Note I'm going with sqlite installation, not mysql. 注意我要安装sqlite,而不是mysql。 There's a conf directory in the installation dir, but that alone can't be it. 安装目录中有一个conf目录,但仅此一个是不可能的。 Data dir can be easily externalised using docker volumes. 可以使用Docker卷轻松将数据目录外部化。 Same could be done with conf dir, but as I said, this alone can't be enough. 可以用conf dir做同样的事情,但是正如我所说,仅此还不够。

So, question is - how to make seafile docker disposable? 因此,问题是-如何使Seafile泊坞窗可抛弃? As in if docker container gets wiped, how to re-set it up so the already existing data and settings could be used? 就像擦除Docker容器一样,如何重新设置它以便可以使用已经存在的数据和设置?

Don't know how I managed not seeing the documentation on the backups: https://manual.seafile.com/maintain/backup_recovery.html 不知道我如何设法不查看备份文档: https : //manual.seafile.com/maintain/backup_recovery.html

Apparently you need to make backups of the sqlite db files (assuming you're on sqlite3 installation, not mysql) and the whole data dir. 显然,您需要备份sqlite db文件(假设您正在安装sqlite3,而不是mysql)和整个数据目录。

So there's not a really clean way of doing what I'm trying. 因此,没有一种真正干净的方式来做我正在尝试的事情。 Guess I'll put the whole seafile installation and data files to a volume that can be used with a dummy docker container. 猜猜我将整个seafile安装和数据文件放到一个可以与虚拟docker容器一起使用的卷中。 This way the whole setup can be easily backed up as well. 这样,整个设置也可以轻松备份。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM