Skip to content

Commit

Permalink
Merge pull request #605 from MaRDI4NFDI/matomo-sql
Browse files Browse the repository at this point in the history
Setup matomos own SQL server
  • Loading branch information
physikerwelt authored Dec 27, 2024
2 parents 78c0ca6 + 85f6016 commit 858f011
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docker-compose-extra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -406,13 +406,24 @@ services:
- matomo:/var/www/html
environment:
- MATOMO_DATABASE_HOST=${MATOMO_DATABASE_HOST}
- MATOMO_DATABASE_USERNAME=${MATOMO_DATABASE_USERNAME}
- MATOMO_DATABASE_USERNAME=${MATOMO_DATABASE_PASSWORD}
- MATOMO_DATABASE_PASSWORD=${MATOMO_DATABASE_PASSWORD}
- MATOMO_DATABASE_DBNAME=${MATOMO_DATABASE_DBNAME}
labels:
- traefik.http.routers.matomo.rule=Host(`matomo.${WIKIBASE_HOST}`)
- traefik.http.routers.matomo.entrypoints=websecure
- traefik.http.routers.matomo.tls.certResolver=le
matomo-database:
image: mariadb:11
restart: always
volumes:
- matomo-mysql-data:/var/lib/mysql
environment:
MYSQL_DATABASE: ${MATOMO_DATABASE_DBNAME}
MYSQL_USER: ${MATOMO_DATABASE_PASSWORD}
MYSQL_PASSWORD: ${MATOMO_DATABASE_PASSWORD}
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'


# Watchtower provides automatic updates for all containers
# see https://containrrr.github.io/watchtower/arguments/
Expand Down Expand Up @@ -511,6 +522,7 @@ volumes:
goaccess_report:
goaccess_db:
matomo:
matomo-mysql-data:
prometheus_data:
provider-logs:
uptime-kuma:
Expand Down

0 comments on commit 858f011

Please sign in to comment.