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 .
To run the container with docker-compose:
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.
At the first time you access piwik, you have to enter the database credentials and create an admin user.
database as the mysql host.
piwik as database-name, db_username and db_password
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.
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?