docker compose에 백업 스크립트 구성
This commit is contained in:
@@ -57,6 +57,10 @@ services:
|
||||
backup:
|
||||
build: ./backup
|
||||
restart: "no"
|
||||
#restart: always
|
||||
command:
|
||||
- echo 'backup is disabled'
|
||||
#- crond -f -L /dev/stdout
|
||||
volumes:
|
||||
- hidche:/var/www/html:ro
|
||||
- backup:/var/backup
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -19,3 +19,6 @@ HIDCHE_GAME_PATH=http://127.0.0.1:8080/sam
|
||||
HIDCHE_IMAGE_USE_INTERNAL=yes
|
||||
#이미지 경로, HIDCHE_IMAGE_USE_INTERNAL이 yes인 경우 HIDCHE_GAME_PATH의 상대 경로. yes가 아닌 경우 전체 도메인 경로.
|
||||
HIDCHE_IMAGE_PATH=../image
|
||||
|
||||
#게시판 서버내 파일 백업 경로, /var/www/board/files 가 아니라면 직접 지정
|
||||
#HIDCHE_BOARD_FILES_PATH=
|
||||
Reference in New Issue
Block a user