项目作者: auchri

项目描述 :
A docker image with nginx and Matomo.
高级语言: Dockerfile
项目地址: git://github.com/auchri/docker-nginx-matomo.git
创建时间: 2016-06-22T15:33:13Z
项目社区:https://github.com/auchri/docker-nginx-matomo

开源协议:GNU General Public License v3.0

下载


Deprecated - Use official Matomo docker image

Matomo provides an official docker image, you should use this instead: https://github.com/matomo-org/docker/blob/master/.examples/apache/docker-compose.yml

docker-nginx-matomo

A docker image with nginx and Matomo.

Pull from docker hub

To pull this image from the docker hub, use to following command:

docker pull auchri/docker-nginx-matomo

Building from source

To build from source you need to clone the git repo and run docker build:

  1. git clone https://github.com/auchri/docker-nginx-matomo.git
  2. docker build -t auchri/docker-nginx-matomo:latest .

Running

To run the container with docker-compose, create a docker-compose.yml with the following content:

  1. version: '3.7'
  2. volumes:
  3. matomo_database_data:
  4. services:
  5. matomo_database:
  6. image: mariadb
  7. restart: unless-stopped
  8. volumes:
  9. - matomo_database_data:/var/lib/mysql
  10. environment:
  11. - MYSQL_ROOT_PASSWORD=your-secret-root-password
  12. - MYSQL_PASSWORD=your-secret-password
  13. - MYSQL_DATABASE=matomo
  14. - MYSQL_USER=matomo
  15. matomo:
  16. image: auchri/docker-nginx-matomo
  17. restart: unless-stopped
  18. ports:
  19. - '80:80'

and execute docker-compose up -d on the same folder as the docker-compose-file is.

After that, you can access Matomo on port 80.

Installation

At the first time you access Matomo, you have to enter the database credentials and create an admin user.
Use matomo_database as mysql host, matomo as database username and name and use your-secret-password as the database password.

Upgrading

After replacing the container, you have to access the database credentials again. But you can use the existing data, so you don’t need to set everything up again.