forked from irl/ansible-collection-wip
Feat: add cleaninsights role
This commit is contained in:
parent
051c1ab57f
commit
bf6ed83fd6
10 changed files with 281 additions and 0 deletions
23
roles/podman_cleaninsights/templates/matomo.container
Normal file
23
roles/podman_cleaninsights/templates/matomo.container
Normal file
|
@ -0,0 +1,23 @@
|
|||
[Unit]
|
||||
Requires=mysql.service
|
||||
After=mysql.service
|
||||
Requires=redis.service
|
||||
After=redis.service
|
||||
|
||||
[Container]
|
||||
ContainerName=matomo
|
||||
Environment=MATOMO_DATABASE_HOST=mysql
|
||||
Environment=PHP_MEMORY_LIMIT={{ podman_cleaninsights_php_memory_limit }}
|
||||
Environment=MATOMO_DATABASE_DBNAME={{ podman_cleaninsights_mysql_database }}
|
||||
Environment=MATOMO_DATABASE_PASSWORD={{ podman_cleaninsights_mysql_password }}
|
||||
Environment=MATOMO_DATABASE_USERNAME={{ podman_cleaninsights_mysql_user }}
|
||||
Image=docker.io/matomo:5-fpm
|
||||
Volume=/home/{{ podman_cleaninsights_podman_rootless_user }}/matomo:/var/www/html
|
||||
#Volume=/home/{{ podman_cleaninsights_podman_rootless_user }}/cleaninsights.php:/var/www/html/cleaninsights.php:ro
|
||||
#Volume=/home/{{ podman_cleaninsights_podman_rootless_user }}/cleaninsights.ini:/var/www/html/cleaninsights.ini:ro
|
||||
Network=cleaninsights.network
|
||||
Network=frontend.network
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
Slice=cleaninsights.slice
|
Loading…
Add table
Add a link
Reference in a new issue