From 9e6121a3892a08334ad871cf5cd146df2b47ae04 Mon Sep 17 00:00:00 2001 From: MingyeomKim <67851124+MingyeomKim@users.noreply.github.com> Date: Sat, 5 Aug 2023 18:54:10 +0900 Subject: [PATCH] =?UTF-8?q?ci:=20docker-compose.yml=20=ED=8C=8C=EC=9D=BC?= =?UTF-8?q?=20=ED=99=98=EA=B2=BD=EB=B3=80=EC=88=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/.env | 2 ++ docker/docker-compose.blue.yml | 11 +++++------ docker/docker-compose.green.yml | 8 ++++---- 3 files changed, 11 insertions(+), 10 deletions(-) create mode 100644 docker/.env diff --git a/docker/.env b/docker/.env new file mode 100644 index 0000000..e267f87 --- /dev/null +++ b/docker/.env @@ -0,0 +1,2 @@ +DOCKER_REGISTRY=dnd9th +DOCKER_APP_NAME=milestone \ No newline at end of file diff --git a/docker/docker-compose.blue.yml b/docker/docker-compose.blue.yml index 0a1588d..02bba82 100644 --- a/docker/docker-compose.blue.yml +++ b/docker/docker-compose.blue.yml @@ -1,11 +1,10 @@ version: '3' services: - blue: # service_name - build: ./ # Dockerfile path - image: ${DOCKER_REGISTRY}/${DOCKER_APP_NAME}:${IMAGE_TAG} - container_name: ${DOCKER_APP_NAME}-blue # + blue: + build: . + image: ${DOCKER_REGISTRY}/${DOCKER_APP_NAME} + container_name: blue environment: - LANG=ko_KR.UTF-8 - - ports: - - '8081:80' \ No newline at end of file + - '8081:8080' \ No newline at end of file diff --git a/docker/docker-compose.green.yml b/docker/docker-compose.green.yml index 3f1d542..e0a1020 100644 --- a/docker/docker-compose.green.yml +++ b/docker/docker-compose.green.yml @@ -1,10 +1,10 @@ version: '3' services: green: - build: ./ - image: - container_name: ${DOCKER_APP_NAME}-green + build: . + image: ${DOCKER_REGISTRY}/${DOCKER_APP_NAME} + container_name: green environment: - LANG=ko_KR.UTF-8 ports: - - '8082:80' \ No newline at end of file + - '8082:8080' \ No newline at end of file