Add initial Dockerfile and docker-compose for Znuny rel-7_1_7 container deployment#680
Add initial Dockerfile and docker-compose for Znuny rel-7_1_7 container deployment#680
Conversation
|
@stackdone Thank you for your contribution. I have some questions left and I hope you can answer them for me. I haven't tried the image, maybe it's already there.
|
Or from an interactive shell inside the container:
You can place the .opm file anywhere on your host system — just make sure to mount the directory containing it into the container using a volume. For example, if your .opm file is in ./packages/MyAddon.opm, add this to your docker-compose.yml (see volume example below)
This way, changes to the config file can be applied without rebuilding the image. |
|
@stackdone, can you please separate the web server and the daemon in their own container? This would make stopping the daemon way easier, because at the moment as far as I see cron would start the daemon again. |
Hey there, I'm new to the platform but very interested in have a docker version of znuny. These boot out of the box in the state of having to visit installer.pl I'm not quite sure how to do a proper pull request for this, or if this particular znuny version is of interest anymore. |
|
@stackdone Thank you for this contribution, which provided valuable information. I will close this PR because we start with Docker based on the PR #755. |
Proposed change
This pull request introduces initial Docker support for Znuny by adding:
• A production-ready Dockerfile for building Znuny containers with all required dependencies.
• A docker-compose.yml configuration for setting up a full Znuny + MariaDB stack, including persistent volumes, and defaults.
• Support for runtime configuration via environment variables and build arguments.
• Preconfigured tuning parameters for MariaDB (max_allowed_packet, innodb_log_file_size) based on Znuny installation recommendations.
• Auto-configuration of the database host in Kernel/Config.pm.
These additions simplify local testing, development, and containerized deployment of Znuny.
Type of change
Checklist