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
|
device: $DATA_PATH/wordpress
|
||||||
o: bind
|
o: bind
|
||||||
type: none
|
type: none
|
||||||
|
mariadb:
|
||||||
|
driver: local
|
||||||
|
driver_opts:
|
||||||
|
device: $DATA_PATH/mariadb
|
||||||
|
o: bind
|
||||||
|
type: none
|
||||||
|
|
||||||
services:
|
services:
|
||||||
mariadb:
|
mariadb:
|
||||||
|
@ -15,9 +21,7 @@ services:
|
||||||
context: ./requirements/mariadb
|
context: ./requirements/mariadb
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
volumes:
|
volumes:
|
||||||
- type: bind
|
- mariadb:/var/lib/mysql
|
||||||
source: $DATA_PATH/mariadb
|
|
||||||
target: /var/lib/mysql
|
|
||||||
networks:
|
networks:
|
||||||
- inception
|
- inception
|
||||||
env_file: .env
|
env_file: .env
|
||||||
|
|
Loading…
Add table
Reference in a new issue