Last active
January 17, 2020 11:57
-
-
Save clemlatz/71d456332790d263d54c345fb0a4c51d to your computer and use it in GitHub Desktop.
Configure Matomo to use environment variables using Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Extend the official Matomo Docker image | |
FROM matomo:3.13.0 | |
# Install unzip | |
RUN apt update && apt install -y unzip | |
# Download, unzip and install the EnvironmentVariables plugin | |
RUN curl -o EnvironmentVariables.zip \ | |
https://plugins.matomo.org/api/2.0/plugins/EnvironmentVariables/download/latest \ | |
&& unzip EnvironmentVariables.zip \ | |
&& rm EnvironmentVariables.zip \ | |
&& mv EnvironmentVariables /usr/src/matomo/plugins | |
# Bring along our personalized Matomo config file | |
COPY config.ini.php /usr/src/matomo/config/config.ini.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment