docker compose에 백업 스크립트 구성

This commit is contained in:
2022-07-25 00:14:46 +09:00
parent afa45119e5
commit 6ebe151858
3 changed files with 25 additions and 0 deletions
@@ -66,3 +66,21 @@ services:
target: /var/www/html
depends_on:
- app
backup:
#restart: always
command:
- echo 'backup is disabled'
#- crond -f -L /dev/stdout
volumes:
- type: bind
source: ~/dev_sam/backup
target: /var/backup
- type: bind
read_only: true
source: ~/dev_sam/app
target: /var/www/html
- type: bind
read_only: true
source: ~/dev_sam/board
target: /var/www/board