Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single docker container #28

Open
alfureu opened this issue Jul 9, 2019 · 4 comments
Open

Single docker container #28

alfureu opened this issue Jul 9, 2019 · 4 comments

Comments

@alfureu
Copy link

alfureu commented Jul 9, 2019

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?

@DocMarty84
Copy link
Owner

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.

@alfureu
Copy link
Author

alfureu commented Jul 15, 2019

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.

@DocMarty84
Copy link
Owner

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: 57b0d72

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
Copy link
Owner

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants