GithubHelp home page GithubHelp logo

docker-piwik's Introduction

wonderfall/piwik

What is this?

It is a web analytics platform. Piwik respects your privacy and gives you full control over your data.

Features

  • Based on Alpine Linux.
  • Latest Piwik stable.
  • nginx stable + PHP7.
  • mysql drivers (server not built-in).
  • Latest GeoLite City Database from maxmind.com.

Build-time variables

  • VERSION : version of Piwik
  • GPG_matthieu : fingerprint of signing key

Environment variables

  • GID : piwik group id (default : 991)
  • UID : piwik user id (default : 991)

Volumes

  • /config : configuration files

Update

Piwik can update itself. It works well. I'm also maintaing this Dockerfile, so if you don't want to do upgrades directly from Piwik, you can recreate the container as well whenever I push an update.

Configuration

According to Piwik, everything should be fine running this image. You shoudn't have any difficulties to setup your own instance of Piwik. Your /config/config.ini.php overwrites the one (in /piwik/config)used by Piwik each time the container is started. Moreover, the old config.ini.php is saved as /config/config.ini.php.bkp if you want to revert last changes. This should also guarantee transparency through Piwik's updates.

If you're running Piwik behind a reverse proxy (most likely you do), add this to your config.ini.php :

[General]
#assume_secure_protocol = 1 #uncomment if you use https
proxy_client_headers[] = HTTP_X_FORWARDED_FOR
proxy_client_headers[] = HTTP_X_REAL_IP
proxy_host_headers[] = HTTP_X_FORWARDED_HOST

Reverse proxy

Use port 8888. https://github.com/Wonderfall/dockerfiles/tree/master/reverse https://github.com/hardware/mailserver/wiki/Reverse-proxy-configuration

Docker Compose (example)

piwik:
  image: wonderfall/piwik
  links:
    - db_piwik:db_piwik
  volumes:
    - /mnt/docker/piwik/config:/config
  environment:
    - GID=1000
    - UID=1000

db_piwik:
  image: mariadb:10
  volumes:
    - /mnt/docker/piwik/db:/var/lib/mysql
  environment:
    - MYSQL_ROOT_PASSWORD=asupersecretpassword
    - MYSQL_DATABASE=piwik
    - MYSQL_USER=piwik
    - MYSQL_PASSWORD=asupersecretpassword

docker-piwik's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.