From 2ad24e9418e9241b56cef5294d45234bc0dc8fa2 Mon Sep 17 00:00:00 2001 From: Sergey Kozlov Date: Tue, 14 Mar 2023 22:46:35 +0300 Subject: [PATCH] matomo.conf for Portainer version: "3.9" --- .examples/nginx/docker-compose.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.examples/nginx/docker-compose.yml b/.examples/nginx/docker-compose.yml index bc390dda..ccbdfcec 100644 --- a/.examples/nginx/docker-compose.yml +++ b/.examples/nginx/docker-compose.yml @@ -1,4 +1,4 @@ -version: "3" +version: "3.9" services: db: @@ -8,7 +8,7 @@ services: volumes: - db:/var/lib/mysql environment: - - MYSQL_ROOT_PASSWORD= + - MYSQL_ROOT_PASSWORD=123456 env_file: - ./db.env @@ -33,10 +33,17 @@ services: volumes: - matomo:/var/www/html:ro # see https://github.com/matomo-org/matomo-nginx - - ./matomo.conf:/etc/nginx/conf.d/default.conf:ro + #- ./matomo.conf:/etc/nginx/conf.d/default.conf:ro ports: - - 8080:80 + - "8080:80" + configs: + - source: matomo.conf + target: /etc/nginx/conf.d/default.conf # for Portainer volumes: db: matomo: + +configs: + matomo.conf: + file: ./matomo.conf