From 8d2510105755bd5979a5870c5749cddcdca49a71 Mon Sep 17 00:00:00 2001 From: songhaechan Date: Sat, 28 Oct 2023 18:20:16 +0900 Subject: [PATCH] docker-compose --- .github/workflows/deploy.yml | 3 ++- docker-compose.yml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bed3586..d7f818d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -79,6 +79,7 @@ jobs: port: 22 script: | sudo docker-compose -f $COMPOSE down --rmi all - sudo docker pull haechansomg/simple-board + sudo docker pull haechansomg/simple-board:was01 + sudo docker pull haechansomg/simple-board:was02 sudo docker-compose -f $COMPOSE up -d sudo docker image prune -f \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index c133837..9dc4d5f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ version: '3' services: spring_app1: container_name: Spring-Tomcat-1 - image: haechansomg/simple-board + image: haechansomg/simple-board:was01 build: context: . dockerfile: dockerFile-was01 @@ -10,7 +10,7 @@ services: - 8080:8080 spring_app2: container_name: Spring-Tomcat-2 - image: haechansomg/simple-board + image: haechansomg/simple-board2:was02 build: context: . dockerfile: dockerFile-was01