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