Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/insekticid/docker-piwik
Dockerized Matomoto (before Piwik) - Small Alpine Image with Nginx and PHP 7.3
https://github.com/insekticid/docker-piwik
docker docker-compose docker-image nginx php7 piwik
Last synced: 5 days ago
JSON representation
Dockerized Matomoto (before Piwik) - Small Alpine Image with Nginx and PHP 7.3
- Host: GitHub
- URL: https://github.com/insekticid/docker-piwik
- Owner: insekticid
- Created: 2017-09-29T12:22:08.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-02-12T07:37:02.000Z (over 4 years ago)
- Last Synced: 2024-08-01T12:21:41.013Z (3 months ago)
- Topics: docker, docker-compose, docker-image, nginx, php7, piwik
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/insekticid/docker-piwik/
- Size: 49.8 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-starred - insekticid/docker-piwik - Dockerized Matomoto (before Piwik) - Small Alpine Image with Nginx and PHP 7.3 (docker)
README
How to run
--------------1. build image: `docker build --pull -t piwik -f Dockerfile`
1. run: `docker run -p 80:80 -v "/srv/docker/volumes/piwik/config:/var/www/html/piwik/config" piwik`Ideal setup for rancher
-----------------------docker-compose.yml
-------------------
```
version: '2'
services:
configuration:
image: rawmind/alpine-volume:0.0.2-1
environment:
SERVICE_GID: '10001'
SERVICE_UID: '10001'
SERVICE_VOLUME: /var/www/html/piwik/config
volumes:
- PIWIK:/var/www/html/piwik/config
labels:
io.rancher.container.start_once: 'true'
io.rancher.scheduler.affinity:container_label_soft_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name}
io.rancher.container.hostname_override: container_name
io.rancher.container.pull_image: always
piwik:
image: insekticid/docker-piwik
stdin_open: true
links:
- db
tty: true
volumes_from:
- configuration
labels:
io.rancher.sidekicks: configuration
io.rancher.container.hostname_override: container_name
io.rancher.container.pull_image: always
db:
image: percona:5.7
restart: "always"
environment:
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- TZ=${WORKSPACE_TIMEZONE:-Europe/Prague}
- LOCALE=cs_CZ
- LANG=cs_CZ.utf8
#env_file: .env
volumes:
- percona:/var/lib/mysql
```