Skip to content

Instantly share code, notes, and snippets.

@clemlatz
Last active January 17, 2020 11:57
Show Gist options
  • Save clemlatz/71d456332790d263d54c345fb0a4c51d to your computer and use it in GitHub Desktop.
Save clemlatz/71d456332790d263d54c345fb0a4c51d to your computer and use it in GitHub Desktop.
Configure Matomo to use environment variables using Docker
# 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