분류 전체보기
-
Nginx 설치 및 Reverse Proxy 설정스터디 노트 2024. 5. 14. 16:17
nginx를 활용하여 리버스 프록시를 설정해보려고 합니다.SSL 인증서가 존재한다는 가정 하에 작성한 것이니 참고 부탁드립니다. // nginx 설치sudo apt-get updatesudo apt-get install nginxnginx가 설치가 되고 나면 nginx -v로 버전을 확인할 수 있습니다.기본 파일 경로로는 /etc/nginx를 확인하면 됩니다. 해당 위치(/etc/nginx/)에서 conf.d 폴더 내부에 default.conf 파일에 SSL과 Proxy 설정을 해줄 수 있습니다.server { server_name [Server의 Domain 이름]; // SSL Port(443) Listen 설정 listen [::]:443 ssl; listen 443 ssl; // SS..
-
Host <-> Docker 간 파일 전송 명령어 (docker cp)스터디 노트 2024. 5. 14. 16:02
docker container와 host간의 파일 송수신을 위해선 docker의 cp명령어를 사용해야 합니다.// 1. Host -> Container로 송신 시docker cp [host 파일 경로] [container name]:[container 내부 파일 수신 경로]// 2. Container -> Host로 송신 시docker cp [container name]:[container 파일 경로] [host 내부 파일 수신 경로]
-
Ubuntu Docker-Compose 설치프로젝트 노트 2024. 5. 14. 14:48
Ubuntu 20.04 이상 버전이 설치된 머신에서 Docker-Compose를 설치하여 간단하게 컨테이너 기반의 환경을 조성할 수 있습니다.이 내용은 먼저 Docker는 설치가 완료된 상태라고 가정하여 작성합니다. Ubuntu 20.04 LTS에 Docker 설치하기기록용으로 우분투 환경에 Docker를 설치하는 방식을 기록합니다.// Ubuntu 20.04 LTS Version// 1. 우분투 시스템 패키지 업데이트sudo apt-get update// 2. 필요한 패키지 설치sudo apt-get install apt-transport-https ca-cdeguruv.tistory.com설치가 되어있지 않으시다면 위 아티클을 참고 바랍니다.이후 아래 절차에 따라 설치하시면 됩니다.// docker-..
-
초간단 Docker에서 Tomcat 설치하기프로젝트 노트 2024. 5. 13. 13:14
초간단 Docker 환경에서 Tomcat 설치하기입니다. 우선 서버에 Docker가 설치되어있다는 가정 하에 아래 명령어를 기입합니다.// 별도 설정 없이 기본으로 실행할 때docker run tomcat:9.0// 포트 및 네임 설정docker run --name tomcat -p 8080:8080 tomcat:9.0// 또는 latest 설정으로 run해도 무관(다만 버전 호환 정보는 확인 필요!) 이후 localhost:8080으로 접근하여 접근 가능한지 확인을 해봅니다.끝!
-
Ubuntu 20.04 LTS에 Docker 설치하기프로젝트 노트 2024. 5. 13. 13:10
기록용으로 우분투 환경에 Docker를 설치하는 방식을 기록합니다.// Ubuntu 20.04 LTS Version// 1. 우분투 시스템 패키지 업데이트sudo apt-get update// 2. 필요한 패키지 설치sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common// 3. Docker 공식 GPG 키 추가curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -// 4. Docker Repository 추가sudo add-apt-repository "deb [arch=amd64] https://d..
-
[오답노트] Docker 환경에서 Vue + Vite Proxy 설정 (웹서버 프록시 설정)오답 노트 2024. 4. 29. 11:22
최근 프로젝트를 진행하며 백엔드 개발자인 저에게 조금의 시련이 찾아왔습니다.Vite 기반의 Vue를 프론트 서버(Ubuntu + Apache2)에 띄우는 것이었죠.그간엔 그냥 부트 임베디드 톰캣에 전부 다 띄우거나, 외부 프론트 개발을 따로하더라도 톰캣을 활용해썼는데이번엔 SSL과 Proxy 설정 및 내부 프로젝트 환경 때문에 부득이하게 웹서버에서 프론트를 서빙해야 하는 이슈가 있었습니다.실제 개발서버 배포 전 개인 PC에서 Docker 환경으로 Ubuntu 컨테이너를 하나 띄우고 그곳에 Apache와 Tomcat을 모두 설치하여프론트 서빙은 Apache를 통해 하도록 구현하고, Backend API는 Tomcat으로 처리하도록 구현하였습니다. 허나 여기서 기존에 제 로컬에선 잘 되던 Vite의 Prox..
-
[Ubuntu & Docker] E: Package 'docker-ce' has no installation candidate오답 노트 2024. 4. 25. 10:02
Ubuntu 환경에서 Docker를 설치할 때 'E: Package 'docker-ce' has no installation candidate'와 같은 오류가 발생한다면 다음의 순서대로 해보시길 권장드립니다.아무래도 신규로 설치를 하다 보니 이런 오류가 발생하는 듯 합니다. 개인적으론 apt-get update를 하지 않아서..(쿨럭) 발생한 오류였습니다. 정리를 해보면 다음과 같습니다.$ sudo apt-get update$ sudo apt-get install ca-certificates curl gnupg lsb-release$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -$ sudo add-apt-repos..
-
[Vue.js 3] vue/multi-word-component-names 오류 & Package.json 수정 권한 없음 오류오답 노트 2024. 4. 9. 12:14
Vue3로 구현된 FE Project를 수행하는 중이라 Vue에 대한 스터디의 필요성을 느끼게 되었습니다. Vue3 강의를 들으며 코드를 구현해보니 이런 오류가 발생했습니다. 의미는 '왜 너 정해진 이름을 니맘대로 써? 문자 두 개 이상 합쳐서 써'였습니다. 즉, Header, Footer, Home과 같이 능히 많이 사용되는 이름의 Component는 선언하지 말고 word를 2개 이상 합쳐서 쓰라는 것이었습니다. 귀찮게하고있습니다...고쳐써 써보죠. 아래와 같이 vue.config.js를 수정했습니다. const { defineConfig } = require('@vue/cli-service') module.exports = defineConfig({ transpileDependencies: true..