Add named volume for database
This commit is contained in:
parent
b4ea4452e3
commit
a85b4a1a5e
@ -14,9 +14,13 @@ services:
|
||||
- ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini:ro
|
||||
database:
|
||||
image: mariadb
|
||||
volumes:
|
||||
- mysql-vol:/var/lib/mysql
|
||||
restart: always
|
||||
env_file: .env
|
||||
environment:
|
||||
MYSQL_DATABASE: mediawiki
|
||||
#MYSQL_USER and MYSQL_PASSWORD in .env
|
||||
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
|
||||
volumes:
|
||||
mysql-vol:
|
||||
|
Loading…
Reference in New Issue
Block a user