본문 바로가기
programming/SpringBoot

SpringBoot 프로젝트 배포

by kvve 2022. 4. 21.

1. SpringBoot프로젝트 war파일로 Export

2. VMWare에 CentOS설치

3. Docker를 설치

4. Docker Web UI 관리툴 Portainer 설치

5. DB컨테이너(Mysql), 서버컨테이너(Tomcat) 생성

6. 포트포워딩하여 배포

 

<결과>

<참고한 링크 정리>

- CentOS설치
https://corock.tistory.com/315

- CentOS에 도커설치
https://reddb.tistory.com/177

- CentOS에Portainer 설치
https://jjig810906.tistory.com/65

- Docker Mysql설치
https://junyharang.tistory.com/entry/docker-Portainer%EB%A5%BC-%EC%9D%B4%EC%9A%A9%ED%95%9C-Maria-DB-%EC%84%A4%EC%B9%98

- Docker Mysql 대소문자구분
https://blog.daum.net/jwchoi1224/265

- Docker Mysql 한글
https://velog.io/@1yangsh/%EC%BB%A8%ED%85%8C%EC%9D%B4%EB%84%88-MySQL-%ED%95%9C%EA%B8%80-%EC%9D%B8%EC%BD%94%EB%94%A9-%ED%95%B4%EA%B2%B0-%EB%B0%A9%EB%B2%95

- Tomcat 컨테이너 설치, war옮기기
https://shanepark.tistory.com/307
docker run -d --name tomcat -p 80:8080 tomcat:9.0
docker cp [파일명] tomcat:/usr/local/tomcat/webapps

- 포트포워딩
https://kibbomi.tistory.com/219

- Docker /bin/bash 접속
docker exec -it [컨테이너명] /bin/bash

- VI설치
apt-get update
apt-get upgrade
apt-get install vim

- 톰캣 프로젝트 실행 경로 수정을 위한 server.xml변경
https://www.lesstif.com/java/tomcat-root-context-webapp-14745616.html

- 톰캣 한국시간
https://lahuman.jabsiri.co.kr/164

 

- 도커 컨테이너 자동실행

https://freesunny.tistory.com/24

 

- 비어있지 않은 dir 강제삭제

https://noosphere.tistory.com/90

'programming > SpringBoot' 카테고리의 다른 글

SpringBatch 기초 공부  (0) 2022.09.22
gradle 라이브러리 추가 오류  (0) 2022.02.24

댓글