Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated working docker-compose example for nginx #288

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .examples/nginx/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MARIADB_PASSWORD="" #you have to set your own passwords here
MARIADB_ROOT_PASSWORD="" #and here
MARIADB_DATABASE=matomo
MARIADB_USER=matomo
MATOMO_DATABASE_ADAPTER=mysql
MATOMO_DATABASE_TABLES_PREFIX=matomo_
MATOMO_DATABASE_USERNAME=matomo
MATOMO_DATABASE_PASSWORD="" #and here
MATOMO_DATABASE_DBNAME=matomo
8 changes: 0 additions & 8 deletions .examples/nginx/db.env

This file was deleted.

14 changes: 6 additions & 8 deletions .examples/nginx/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,23 @@ services:
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=
env_file:
- ./db.env
- MARIADB_PASSWORD
- MARIADB_USER
- MARIADB_DATABASE
- MARIADB_ROOT_PASSWORD

app:
image: matomo:fpm-alpine
restart: always
links:
- db
volumes:
# - ./config:/var/www/html/config:rw
# - ./logs:/var/www/html/logs
- ./config:/var/www/html/config:rw
- ./logs:/var/www/html/logs
- matomo:/var/www/html
environment:
- MATOMO_DATABASE_HOST=db
- PHP_MEMORY_LIMIT=2048M
env_file:
- ./db.env

web:
image: nginx:alpine
restart: always
Expand Down