35 lines
734 B
YAML
35 lines
734 B
YAML
version: "3.7"
|
|
services:
|
|
db:
|
|
image: mariadb:10
|
|
command: --max-allowed-packet=64MB
|
|
volumes:
|
|
- ./db:/var/lib/mysql
|
|
environment:
|
|
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
|
|
env_file:
|
|
- ./.env
|
|
networks:
|
|
- matomo
|
|
|
|
matomo:
|
|
image: matomo:latest
|
|
volumes:
|
|
- ./html:/var/www/html
|
|
env_file:
|
|
- ./.env
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.matomo.rule=Host(`matomo.combava.lan`)"
|
|
- "traefik.http.routers.matomo.entrypoints=https"
|
|
- "traefik.http.routers.matomo.tls=true"
|
|
- "traefik.http.services.matomo.loadbalancer.server.port=80"
|
|
networks:
|
|
- matomo
|
|
- gateway
|
|
|
|
networks:
|
|
matomo:
|
|
gateway:
|
|
external: true
|