mkuf / prind

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

Move config from mount to volume #105

Closed occasional-contributor closed 8 months ago

occasional-contributor commented 8 months ago

Move config from mount to volume

Motivation

How it was tested

  1. docker compose --profile hostmcu --profile fluidd --profile mobileraker_companion up -d
  2. COMPOSE_PROFILES=hostmcu,fluidd,mobileraker_companion docker compose up -d
  3. Launch stack in Portainer with environment variable COMPOSE_PROFILES=hostmcu,fluidd,mobileraker_companion.
mkuf commented 8 months ago

Hey there,

I see two potential issues with this.

I'm open to improve the compatibility w/ portainer but would like to keep those changes contained in the custom/docker-compose.custom.portainer.yaml file.

Furthermore, Dockerfiles should not be located in the root of this project but in a service specific directory within docker/.
For simple image builds that are supposed to run when the stack starts, it is also preferred to have them defined inline within the compose file, see the following example for reference. https://github.com/mkuf/prind/blob/64abc3028d23f7462b8cbcb5e67e6a59b17d417c/custom/docker-compose.custom.unique-uid-gid.override.yaml#L28-L38

-Markus

occasional-contributor commented 8 months ago

All very valid concerns.

I will incorporate the inlined dockerfile.

Feel free to close this PR.

I'll use my fork and keep it up-to-date with your repo. If anyone asks for compatibility with Portainer, please send them my way. I ran into quite a few issues trying to make the existing compose file for Portainer work, which is why I went down this rabbit hole.

I may create another PR once I get the custom Portainer compose file working.