14 lines
432 B
YAML
14 lines
432 B
YAML
# Bind mount the `sites` volume to a host directory instead of letting Docker manage it.
|
|
#
|
|
# NOTE:
|
|
# - `SITES_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:
|
|
sites:
|
|
driver: local
|
|
driver_opts:
|
|
type: none
|
|
o: bind
|
|
device: ${SITES_DATA_LOCATION}
|