Create docker-compose-variable-volume.yaml

This commit is contained in:
Andras Bacsai
2025-11-07 14:18:24 +01:00
committed by GitHub
parent 16ef02f924
commit 61fb015ba9

View File

@@ -0,0 +1,19 @@
services:
database:
build:
context: './mysql'
restart: always
environment:
- BACKUP_HEARTBEAT_URL=${DB_BACKUP_HEARTBEAT_URL}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
volumes:
- type: bind
source: ${VOLUMES_PATH}/mysql
target: /var/lib/mysql
# noinspection ComposeUnknownKeys
is_directory: true
- type: bind
source: ${VOLUMES_PATH}/mysql-backup
target: /backup
# noinspection ComposeUnknownKeys
is_directory: true