feat: Add matomo
This commit is contained in:
		@@ -1,15 +1,19 @@
 | 
			
		||||
version: '3'
 | 
			
		||||
version: "3.7"
 | 
			
		||||
 | 
			
		||||
volumes:
 | 
			
		||||
  histoiredunpied-log-volume:
 | 
			
		||||
    name: histoiredunpied-log-volume
 | 
			
		||||
 | 
			
		||||
services:
 | 
			
		||||
  histoiredunpied:
 | 
			
		||||
    container_name: ${NAME}
 | 
			
		||||
    build: .
 | 
			
		||||
    image: ${NAME}
 | 
			
		||||
    environment:
 | 
			
		||||
      - TZ=Europe/Paris
 | 
			
		||||
      - TZ=${TIMEZONE}
 | 
			
		||||
    volumes:
 | 
			
		||||
      - histoiredunpied-log-volume:/var/log/nginx
 | 
			
		||||
    labels:
 | 
			
		||||
      traefik.enable: "true"
 | 
			
		||||
      traefik.docker.network: "traefik"
 | 
			
		||||
 | 
			
		||||
      # Redirect http:// to https://
 | 
			
		||||
      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.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:
 | 
			
		||||
  default:
 | 
			
		||||
    external:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user