Skip to content

Instantly share code, notes, and snippets.

@lfache
Created June 3, 2020 16:47
Show Gist options
  • Save lfache/4312a50e6fc262589edff593e0371cc8 to your computer and use it in GitHub Desktop.
Save lfache/4312a50e6fc262589edff593e0371cc8 to your computer and use it in GitHub Desktop.
Matomo : docker-compose.yaml
version: "3.7"
services:
database:
image: mariadb:10
command: --max-allowed-packet=64MB
restart: unless-stopped
volumes:
- db:/var/lib/mysql
environment:
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
env_file:
- ./db.env
networks:
- lan
app:
image: matomo
restart: unless-stopped
volumes:
- matomo:/var/www/html
environment:
VIRTUAL_HOST: ${MATOMO_URL}
env_file:
- ./db.env
networks:
- lan
volumes:
db:
matomo:
networks:
lan:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment