From 6ebe1518588eecfa08c42f9e14cebffe1462dfd2 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Mon, 25 Jul 2022 00:14:46 +0900 Subject: [PATCH] =?UTF-8?q?docker=20compose=EC=97=90=20=EB=B0=B1=EC=97=85?= =?UTF-8?q?=20=EC=8A=A4=ED=81=AC=EB=A6=BD=ED=8A=B8=20=EA=B5=AC=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hidche/docker-compose.yml | 4 ++++ hidche/example.docker-compose.override.yml | 18 ++++++++++++++++++ hidche/game.orig.env | 3 +++ 3 files changed, 25 insertions(+) diff --git a/hidche/docker-compose.yml b/hidche/docker-compose.yml index 5d2831d..89fccc9 100644 --- a/hidche/docker-compose.yml +++ b/hidche/docker-compose.yml @@ -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 diff --git a/hidche/example.docker-compose.override.yml b/hidche/example.docker-compose.override.yml index 5257ac6..2f90abc 100644 --- a/hidche/example.docker-compose.override.yml +++ b/hidche/example.docker-compose.override.yml @@ -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 diff --git a/hidche/game.orig.env b/hidche/game.orig.env index 9e49f88..20328b3 100644 --- a/hidche/game.orig.env +++ b/hidche/game.orig.env @@ -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= \ No newline at end of file