Compare commits
2 Commits
3084e8392d
...
8fa797a362
Author | SHA1 | Date | |
---|---|---|---|
8fa797a362 | |||
54332dc361 |
4
.gitignore
vendored
4
.gitignore
vendored
@ -3,5 +3,9 @@ matrix/nginx/www/
|
|||||||
matrix/synapse/media_store/
|
matrix/synapse/media_store/
|
||||||
|
|
||||||
traefik/certs/
|
traefik/certs/
|
||||||
|
traefik/log/
|
||||||
|
|
||||||
minio/data
|
minio/data
|
||||||
|
|
||||||
|
matomo/html/
|
||||||
|
matomo/db/
|
||||||
|
11
matomo/.env
Normal file
11
matomo/.env
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
MATOMO_DATABASE_HOST=db
|
||||||
|
MATOMO_DATABASE_ADAPTER=mysql
|
||||||
|
MATOMO_DATABASE_TABLES_PREFIX=matomo_
|
||||||
|
MATOMO_DATABASE_USERNAME=MYUSER
|
||||||
|
MATOMO_DATABASE_PASSWORD=MYPASSWORD
|
||||||
|
MATOMO_DATABASE_DBNAME=MYDATABASE
|
||||||
|
|
||||||
|
|
||||||
|
MYSQL_PASSWORD=$MATOMO_DATABASE_PASSWORD
|
||||||
|
MYSQL_DATABASE=$MATOMO_DATABASE_DBNAME
|
||||||
|
MYSQL_USER=$MATOMO_DATABASE_USERNAME
|
34
matomo/docker-compose.yml
Normal file
34
matomo/docker-compose.yml
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
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
|
@ -19,6 +19,8 @@ services:
|
|||||||
- ./config.yml:/etc/traefik/config.yml:ro
|
- ./config.yml:/etc/traefik/config.yml:ro
|
||||||
# On map les certificats dans le conteneur
|
# On map les certificats dans le conteneur
|
||||||
- ./certs:/etc/certs:ro
|
- ./certs:/etc/certs:ro
|
||||||
|
- ./log:/var/log/traefik
|
||||||
|
- /usr/share/zoneinfo:/usr/share/zoneinfo:ro
|
||||||
networks:
|
networks:
|
||||||
- gateway
|
- gateway
|
||||||
labels:
|
labels:
|
||||||
|
@ -38,3 +38,12 @@ http:
|
|||||||
redirectScheme:
|
redirectScheme:
|
||||||
scheme: https
|
scheme: https
|
||||||
permanent: true
|
permanent: true
|
||||||
|
|
||||||
|
accessLog:
|
||||||
|
filePath: "/var/log/traefik/access.log"
|
||||||
|
fields:
|
||||||
|
defaultMode: keep
|
||||||
|
names:
|
||||||
|
StartUTC: drop
|
||||||
|
headers:
|
||||||
|
defaultMode: keep
|
||||||
|
Loading…
Reference in New Issue
Block a user