Skip to content
README.md 1.87 KiB
Newer Older
Michel Memeteau's avatar
Michel Memeteau committed
# MATOMO
Pierre Ozoux's avatar
Pierre Ozoux committed

[![Build Status](https://travis-ci.org/piwik/docker-piwik.svg?branch=master)](https://travis-ci.org/piwik/docker-piwik)

Piwik is the leading open-source analytics platform that gives you more than just powerful analytics:

 - Free open-source software
 - 100% data ownership
 - User privacy protection
 - User-centric insights
 - Customisable and extensible

Michel Memeteau's avatar
Michel Memeteau committed
![logo](https://static.matomo.org/wp-content/uploads/2018/10/matomo-logo-final-1-170x25.png)
Pierre Ozoux's avatar
Pierre Ozoux committed

Michel Memeteau's avatar
Michel Memeteau committed
# How to use this recipe
Pierre Ozoux's avatar
Pierre Ozoux committed

Michel Memeteau's avatar
Michel Memeteau committed
The easiest is to use with `libre.sh`.
Pierre Ozoux's avatar
Pierre Ozoux committed

Michel Memeteau's avatar
Michel Memeteau committed
Make sure you have [libresh](https://libre.sh) installed. And then:
Pierre Ozoux's avatar
Pierre Ozoux committed

```bash
Michel Memeteau's avatar
Michel Memeteau committed
libre provision -a matomo -u matomo.local -s
Michel Memeteau's avatar
Michel Memeteau committed

Pierre Ozoux's avatar
Pierre Ozoux committed
```

You can now access your instance on the port 80 of the IP of your machine (not recommended for production).

## Access it from Internet

Pierre Ozoux's avatar
Pierre Ozoux committed
We recommend the usage of TLS, so the easiest is to use a TLS capable reverse proxy.
Pierre Ozoux's avatar
Pierre Ozoux committed
Here are 2 examples:
Pierre Ozoux's avatar
Pierre Ozoux committed

Pierre Ozoux's avatar
Pierre Ozoux committed
 - [haproxy](https://github.com/indiehosters/haproxy)
 - [nginx](https://github.com/indiehosters/nginx)
Pierre Ozoux's avatar
Pierre Ozoux committed

Pierre Ozoux's avatar
Pierre Ozoux committed
You can also modify manually the nginx configuration file and map the TLS port of the host to the container.
Pierre Ozoux's avatar
Pierre Ozoux committed

## Installation

Once started, you'll arrive at the configuration wizard.
At the `Database Setup` step, please enter the following:

  -  Database Server: `db`
  -  Login: `root`
  -  Password: MYSQL_ROOT_PASSWORD
  -  Database Name: piwik (or you can choose)
 
And leave the rest as default.

Then you can continue the installation with the super user.

## Backup

Pierre Ozoux's avatar
Pierre Ozoux committed
In order to backup, just run the `./pre-backup` script. And copy all the data to a safe place.
Pierre Ozoux's avatar
Pierre Ozoux committed

## Contribute

Pull requests are very welcome!

We'd love to hear your feedback and suggestions in the issue tracker: [github.com/indiehosters/piwik/issues](https://github.com/indiehosters/piwik/issues).

## GeoIP

This product includes GeoLite data created by MaxMind, available from
[http://www.maxmind.com](http://www.maxmind.com).