Merge pull request #1509 from J0WI/upmat

Update bits of matomo docs
This commit is contained in:
yosifkit 2019-06-27 16:47:55 -07:00 committed by GitHub
commit 574a7ae097
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 9 deletions

View File

@ -10,11 +10,7 @@
%%LOGO%% %%LOGO%%
## Usage # How to use this image
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
You can run the Matomo container and service like so: 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. 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 ## 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: 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` - Database Server: `db`
- Login: `root` - Login: MYSQL_USER
- Password: MYSQL_ROOT_PASSWORD - Password: MYSQL_PASSWORD
- Database Name: piwik (or you can choose) - Database Name: MYSQL_DATABASE
And leave the rest as default. And leave the rest as default.