Skip to content

Latest commit

 

History

History
 
 

swarm

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Swarm

Install and use this Matomo Docker image within a Docker Swarm cluster.

Prerequisites

Create a running Swarm cluster environment and use a storage volume driver of your choice. Here I use a simple NFS server with binded volumes.

Then edit .env and matomo.env files with your preferences.

mkdir -p ${ROOT_DIR}
cp .env ${ROOT_DIR}/
cp matomo.env ${ROOT_DIR}/
touch ${ROOT_DIR}/acme.json
chmod 600 ${ROOT_DIR}/acme.json

ROOT_DIR is defined in .env

Deploy

And deploy the stack with this command :

# Create matomo stack
docker stack deploy matomo -c docker-compose.yml