Files
coolify-examples/docker-compose-test/docker-compose-variable-volume.yaml
2025-11-07 14:20:01 +01:00

18 lines
490 B
YAML

services:
database:
image: nginx
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