use 'managed' bind volume for MariaDB
This commit is contained in:
parent
a7fe224b1a
commit
193016296a
1 changed files with 7 additions and 3 deletions
|
@ -7,6 +7,12 @@ volumes:
|
|||
device: $DATA_PATH/wordpress
|
||||
o: bind
|
||||
type: none
|
||||
mariadb:
|
||||
driver: local
|
||||
driver_opts:
|
||||
device: $DATA_PATH/mariadb
|
||||
o: bind
|
||||
type: none
|
||||
|
||||
services:
|
||||
mariadb:
|
||||
|
@ -15,9 +21,7 @@ services:
|
|||
context: ./requirements/mariadb
|
||||
dockerfile: Dockerfile
|
||||
volumes:
|
||||
- type: bind
|
||||
source: $DATA_PATH/mariadb
|
||||
target: /var/lib/mysql
|
||||
- mariadb:/var/lib/mysql
|
||||
networks:
|
||||
- inception
|
||||
env_file: .env
|
||||
|
|
Loading…
Add table
Reference in a new issue