use 'managed' bind volume for MariaDB

This commit is contained in:
Arnaud Lier 2025-02-19 15:38:53 +01:00
parent a7fe224b1a
commit 193016296a

View file

@ -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