mkuf / prind

print in docker - Deploy a containerized Klipper Stack for your 3D Printer
GNU General Public License v3.0
321 stars 82 forks source link

Not compatible with Portainer #165

Closed veeroohre closed 1 month ago

veeroohre commented 1 month ago

I use Portainer for managing my docker container.

Unfortunately the docker compose of prind uses relativ pathes ( ./config) and mounts single files. This is unfortunately not compatible with the volume approach of Portainer.

Would it be possible to develop a composer file with only volumes? I tried it myself but failed.

mkuf commented 1 month ago

The custom directory contains a compose file that is compatible with portainer at https://github.com/mkuf/prind/blob/main/custom/docker-compose.custom.portainer.yaml

The comment at the top of the file describes the required steps to get the services up and running.

-Markus

veeroohre commented 1 month ago

Haven't seen it. Sorry!

Danke Markus!

veeroohre commented 1 month ago

In the klipper section in this file there's still a relative mount:

Would it possible to move that to a volume or "/data/prind/config"?

mkuf commented 1 month ago

Good catch, that path should also point to /data/prind/config instead of ./config.
I fixed the path with https://github.com/mkuf/prind/commit/0362c28b41ed26a106fe17aa56d600029d60388c

veeroohre commented 1 month ago

Mainsail and Octoprint are missing in this file or is it on purpose?

mkuf commented 1 month ago

Yes, this is by design, as this project focuses on docker compose compatibility.

As the main compose file is incompatible w/ portainer, die custom file defines just a basic stack with static service definitions to provide a starting point for portainer users. Other services may be added to the portainer file by referencing the main compose file.