$ show matomo-org/docker
This repository provides Docker images for the Matomo web analytics platform. It builds images for three variants (Apache, PHP-FPM Debian, and PHP-FPM Alpine) that include Matomo source code, PHP extensions, and configuration. The images are designed to run with a persistent volume for Matomo data and connect to an external database. The entrypoint script handles initial setup by extracting Matomo to the volume if needed and managing file permissions. The repository uses templating to maintain variant-specific Dockerfiles and includes scripts for automated version updates and library generation.
The LLM identified 1 files worth highlighting for reuse:
The file_env function provides a reusable pattern for handling environment variables and Docker secrets in shell scripts. It checks for both the variable and its _FILE variant (for secrets), prevents conflicts, and sets a default if needed. This function is isolated, has no external dependencies beyond standard shell utilities, and can be copied into any shell script to add Docker secrets support.