Hello,
I'm running docker app matomo with docker compose. As of today, the app is using local mysql server to host its databases.
Now, I want to link my local app with Azure database for mysql, I want to know how to substitute necessary variables to keep the app working with the new architecture.
The database variables are defined in 2 files :
- **FILE 1 : docker-compose.yml :**
version: "3"
services:
db:
image: mariadb
command: --max-allowed-packet=64MB
restart: always
volumes:
- ./db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=XXXX
env_file:
- ./db.env
ports:
- 3306:3306
app:
image: matomo
restart: always
volumes:
# - ./config:/var/www/html/config
# - ./logs:/var/www/html/logs
- ./matomo:/var/www/html
environment:
- MATOMO_DATABASE_HOST=db
env_file:
- ./db.env
ports:
- 8080:80
volumes:
db:
matomo:
- **FILE 2 : db.env :**
MYSQL_PASSWORD=XXXX
MYSQL_DATABASE=matomo
MYSQL_USER=matomo
MATOMO_DATABASE_ADAPTER=mysql
My guess maybe change db volume and MATOMO_DATABASE_HOST=db to declare remote azure instance ?
Rgds,