commit
574a7ae097
|
|
@ -10,11 +10,7 @@
|
|||
|
||||
%%LOGO%%
|
||||
|
||||
## Usage
|
||||
|
||||
In keeping with a 'pure' micro-services approach, this image runs a Matomo service only (in the form of FastCGI). Because of that it **must** be used with companion containers which provide a database for data storage and HTTP to FastCGI proxy/translation services for the user interface.
|
||||
|
||||
## Runtime
|
||||
# How to use this image
|
||||
|
||||
You can run the Matomo container and service like so:
|
||||
|
||||
|
|
@ -24,16 +20,22 @@ docker run -d --link some-mysql:db matomo
|
|||
|
||||
This assumes you've already launched a suitable MySQL or MariaDB database container.
|
||||
|
||||
You'll now need to use a suitable reverse proxy to access the user interface; which is available on TCP port 9000. Nginx provides the necessary functions for translation between HTTP and FastCGI.
|
||||
## Persistent data
|
||||
|
||||
Use a Docker volume to keep persistent data:
|
||||
|
||||
```console
|
||||
docker run -d --link some-mysql:db -v matomo:/var/www/html matomo
|
||||
```
|
||||
|
||||
## Matomo Installation
|
||||
|
||||
Once you're up and running, you'll arrive at the configuration wizard page. If you're using the compose file, 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)
|
||||
- Login: MYSQL_USER
|
||||
- Password: MYSQL_PASSWORD
|
||||
- Database Name: MYSQL_DATABASE
|
||||
|
||||
And leave the rest as default.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue