frappe_docker_380b9d0_20260902/overrides/compose.bind-mount-db-data....

15 lines
517 B
YAML

# Bind mount the `db-data` volume to a host directory instead of letting Docker manage it.
# Use together with overrides/compose.mariadb.yaml or overrides/compose.postgres.yaml.
#
# NOTE:
# - `DB_DATA_LOCATION` (required): absolute path to the host directory to bind mount.
# - The directory must exist before running `docker compose up -d`, otherwise Docker fails
# when populating the volume.
volumes:
db-data:
driver: local
driver_opts:
type: none
o: bind
device: ${DB_DATA_LOCATION}