Update mariadb example to auto upgrade from latest image
This commit is contained in:
parent
4e0768d56c
commit
e08a4d4490
2 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
|
@ -86,6 +86,7 @@ services:
|
|||
MYSQL_DATABASE: 'npm'
|
||||
MYSQL_USER: 'npm'
|
||||
MYSQL_PASSWORD: 'npm'
|
||||
MARIADB_AUTO_UPGRADE: '1'
|
||||
volumes:
|
||||
- ./mysql:/var/lib/mysql
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue