Skip to content

Commit

Permalink
docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
songhaechan committed Oct 28, 2023
1 parent ecac6b9 commit 8d25101
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ version: '3'
services:
spring_app1:
container_name: Spring-Tomcat-1
image: haechansomg/simple-board
image: haechansomg/simple-board:was01
build:
context: .
dockerfile: dockerFile-was01
ports:
- 8080:8080
spring_app2:
container_name: Spring-Tomcat-2
image: haechansomg/simple-board
image: haechansomg/simple-board2:was02
build:
context: .
dockerfile: dockerFile-was01
Expand Down

0 comments on commit 8d25101

Please sign in to comment.