Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Piwik
[![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
![logo](https://rawgit.com/piwik/docker-piwik/master/logo.svg)
# How to use this image
The easiest is to use our `docker-compose.yml`.
Make sure you have [docker-compose](http://docs.docker.com/compose/install/) installed. And then:
```bash
git clone https://github.com/indiehosters/piwik.git
cd docker-piwik
# edit variables in the docker-compose file or pass them from your comamnd line
docker-compose up
```
You can now access your instance on the port 80 of the IP of your machine (not recommended for production).
## Access it from Internet
We recommend the usage of SSL, so the easiest is to modify the `nginx.conf` file.
Once it is done, you can connect to the port of the host by adding this line to `docker-compose.yml`:
```
web:
...
- ports:
- "443:443"
- "80:80"
...
```
## 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.
## Emails
The recommended way is to use the `ssmtp` shipped with the image.
To use it, just run:
```
export MAIL_USER=myname@gmail.com
export MAIL_PASS=mypass
export MAIL_HOST=mail.google.com
export MAIL_PORT=587
./install
```
## Backup
In order to backup, just run the `./BACKUP` script. And copy all the data to a safe place.
## 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).