koozic icon indicating copy to clipboard operation
koozic copied to clipboard

Single docker container

Open alfureu opened this issue 4 years ago • 4 comments

Currently when I install Koozic it deploys 2 containers, 1 for the database, 1 for the app itself. Would it be possible to unify the container into one single one where one can set external links for the volumes? Eventually, would it be possible to link the container to an already existing MySQL database?

alfureu avatar Jul 09 '19 07:07 alfureu

Hello,

The current setup is made in purpose so we keep the user data when upgrading Koozic. At upgrade, the source code is updated (the container is replaced) and the database structure might be altered (this container is kept).

It uses PostgreSQL as database, and it is surely possible to link it to any existing running instance. As long as your PostgreSQL server accepts connections from the outside world, there is no issue to do it. However, I don't have much knowledge with such a setup, and I can't provide any guidance for the configuration of the Docker related files.

DocMarty84 avatar Jul 09 '19 14:07 DocMarty84

Hi, many thanks for the explanation. This is helpful. However, my comment was revolving more around the questions, wherther a) we can use some other databases next to PostgreSQL, I mean here MariaDB or some other flavours; b) I use watchtover for updating, and I would like to disable updating Koozic's containers, as I install them manually. I am unable to do so, as it requires setting specific labels for Koozic, any try of editing the build failed for me.

With my comment I was investigating the possibility of a much simplet deployment of containers, which one can further tinker through Portainer or similar tool. Currently this is not possible.

alfureu avatar Jul 15 '19 06:07 alfureu

Regarding the database, PostgreSQL is the only supported database engine. There is no plan to support other DB engines in the future.

About the deployment, here is the commit which introduced two containers: https://github.com/DocMarty84/koozic/commit/57b0d72fc261a875ea4fcc7b8e2ca498217e3e99

Before this commit, everything was in a single container.

I'd gladly help if you'd like to come back to such a setup, but at this point I cannot afford maintaining multiple Docker configurations in Koozic. Anyway, a Dockerfile is kind of a fancy Bash script, so it's not very difficult to fine tune. I'll have a look into that in August when I'll have access to a computer.

DocMarty84 avatar Jul 15 '19 15:07 DocMarty84

Hello,

For the record, the latest beta version contains a single Docker container: https://github.com/DocMarty84/koozic/releases/tag/v3.1.0-beta.1 (koozic-v3.1.0-beta.1-docker-single.tar.gz).

DocMarty84 avatar Apr 14 '20 21:04 DocMarty84