Public | Automated Build

Last pushed: 9 days ago
Short Description
A docker image with nginx and piwik.
Full Description

docker-nginx-piwik

A docker image with nginx and piwik.

Pull from docker hub

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

docker pull auchri/docker-nginx-piwik

Building from source

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

git clone https://github.com/auchri/docker-nginx-piwik.git
docker build -t auchri/docker-nginx-piwik:latest .

Running

To run the container with docker-compose:

docker-compose up

To run the container with docker:

docker run --name mysql -p 80:80 -e MYSQL_ROOT_PASSWORD=pw -e MYSQL_DATABASE=piwik -e MYSQL_USER=piwik -e MYSQL_PASSWORD=piwik mariadb
docker run -d --link mysql:database --name piwik auchri/docker-nginx-piwik

After that, you can access piwik on port 80.

Installation

At the first time you access piwik, you have to enter the database credentials and create an admin user.
use database as the mysql host.
use piwik as database-name, db_username and db_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 again.

Docker Pull Command
Owner
auchri
Source Repository

Comments (1)
wentixiaogege
a year ago

I can run the piwik ,but during the set-up progress , the mysql connection is always refused .
you have to enter the database credentials and create an admin user what does this mean??
I have to go to mysql container create some users?