Update mariadb example to auto upgrade from latest image

This commit is contained in:
Jamie Curnow 2023-11-28 08:27:11 +10:00
parent 4e0768d56c
commit e08a4d4490
No known key found for this signature in database
GPG Key ID: FFBB624C43388E9E
2 changed files with 2 additions and 0 deletions

View File

@ -138,6 +138,7 @@ services:
MYSQL_USER: "npm"
# MYSQL_PASSWORD: "npm" # use secret instead
MYSQL_PASSWORD__FILE: /run/secrets/MYSQL_PWD
MARIADB_AUTO_UPGRADE: '1'
volumes:
- ./mysql:/var/lib/mysql
secrets:

View File

@ -86,6 +86,7 @@ services:
MYSQL_DATABASE: 'npm'
MYSQL_USER: 'npm'
MYSQL_PASSWORD: 'npm'
MARIADB_AUTO_UPGRADE: '1'
volumes:
- ./mysql:/var/lib/mysql
```