43 lines
1.2 KiB
YAML
43 lines
1.2 KiB
YAML
|
version: "3.8"
|
||
|
|
||
|
volumes:
|
||
|
matomo:
|
||
|
name: ${MATOMO_VOLUME_NAME:-matomo}
|
||
|
|
||
|
services:
|
||
|
matomo-fpm:
|
||
|
container_name: ${MATOMO_CONTAINER_NAME:-matomo}-fpm
|
||
|
image: ${MATOMO_IMAGE:-matomo:4.7.1-fpm-alpine}
|
||
|
restart: always
|
||
|
environment:
|
||
|
MATOMO_DATABASE_HOST: ${MARIADB_CONTAINER_NAME:-mariadb}
|
||
|
MATOMO_DATABASE_ADAPTER: mysql
|
||
|
MATOMO_DATABASE_TABLES_PREFIX: matomo_
|
||
|
MATOMO_DATABASE_USERNAME: ${MARIADB_USER:?err}
|
||
|
MATOMO_DATABASE_PASSWORD: ${MARIADB_PASSWORD:?err}
|
||
|
MATOMO_DATABASE_DBNAME: ${MARIADB_DATABASE:?err}
|
||
|
PHP_MEMORY_LIMIT: ${PHP_MEMORY_LIMIT:-256M}
|
||
|
PUID: ${MATOMO_PUID:-1000}
|
||
|
PGID: ${MATOMO_PGID:-1000}
|
||
|
depends_on:
|
||
|
- mariadb
|
||
|
volumes:
|
||
|
- matomo:/var/www/html
|
||
|
- /etc/timezone:/etc/timezone:ro
|
||
|
- /etc/localtime:/etc/localtime:ro
|
||
|
|
||
|
matomo-web:
|
||
|
container_name: ${MATOMO_CONTAINER_NAME:-matomo}-web
|
||
|
build: web
|
||
|
restart: always
|
||
|
environment:
|
||
|
MATOMO_FPM_CONTAINER_NAME: ${MATOMO_CONTAINER_NAME:-matomo}-fpm
|
||
|
PUID: ${MATOMO_PUID:-1000}
|
||
|
PGID: ${MATOMO_PGID:-1000}
|
||
|
depends_on:
|
||
|
- matomo-fpm
|
||
|
volumes:
|
||
|
- matomo:/var/www/html
|
||
|
- /etc/timezone:/etc/timezone:ro
|
||
|
- /etc/localtime:/etc/localtime:ro
|