mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-02-18 21:38:58 +00:00
Create docker-compose-variable-volume.yaml
This commit is contained in:
19
docker-compose-test/docker-compose-variable-volume.yaml
Normal file
19
docker-compose-test/docker-compose-variable-volume.yaml
Normal 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
|
||||||
Reference in New Issue
Block a user