feat: Add matomo
This commit is contained in:
parent
c9158e3d00
commit
e1e6bcd9ea
|
@ -1,15 +1,19 @@
|
||||||
version: '3'
|
version: "3.7"
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
histoiredunpied-log-volume:
|
||||||
|
name: histoiredunpied-log-volume
|
||||||
|
|
||||||
services:
|
services:
|
||||||
histoiredunpied:
|
histoiredunpied:
|
||||||
container_name: ${NAME}
|
container_name: ${NAME}
|
||||||
build: .
|
build: .
|
||||||
image: ${NAME}
|
|
||||||
environment:
|
environment:
|
||||||
- TZ=Europe/Paris
|
- TZ=${TIMEZONE}
|
||||||
|
volumes:
|
||||||
|
- histoiredunpied-log-volume:/var/log/nginx
|
||||||
labels:
|
labels:
|
||||||
traefik.enable: "true"
|
traefik.enable: "true"
|
||||||
traefik.docker.network: "traefik"
|
|
||||||
|
|
||||||
# Redirect http:// to https://
|
# Redirect http:// to https://
|
||||||
traefik.http.routers.histoiredunpied.rule: "Host(`${URL}`)"
|
traefik.http.routers.histoiredunpied.rule: "Host(`${URL}`)"
|
||||||
|
@ -31,6 +35,20 @@ services:
|
||||||
traefik.http.routers.histoiredunpied-redirect-www-https.tls.certResolver: "letsencrypt"
|
traefik.http.routers.histoiredunpied-redirect-www-https.tls.certResolver: "letsencrypt"
|
||||||
traefik.http.routers.histoiredunpied-redirect-www-https.middlewares: "redirect-www@docker"
|
traefik.http.routers.histoiredunpied-redirect-www-https.middlewares: "redirect-www@docker"
|
||||||
|
|
||||||
|
matomo:
|
||||||
|
container_name: ${NAME}_matomo
|
||||||
|
image: kosssi/matomo-log-analytics
|
||||||
|
depends_on:
|
||||||
|
- histoiredunpied
|
||||||
|
environment:
|
||||||
|
MATOMO_URL: ${MATOMO_URL}
|
||||||
|
MATOMO_IDSITE: ${MATOMO_IDSITE}
|
||||||
|
MATOMO_TOKEN_AUTH: ${MATOMO_TOKEN_AUTH}
|
||||||
|
LOG_PATH: ${LOG_PATH}
|
||||||
|
CRON_FREQUENCY: ${CRON_FREQUENCY}
|
||||||
|
volumes:
|
||||||
|
- histoiredunpied-log-volume:/var/log/nginx
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
external:
|
external:
|
||||||
|
|
Loading…
Reference in New Issue