node.js 기반 api 기능을 하는 컨테이너를 만들어서 클라우드에 띄워볼 것이다.
그래서 이번에 사용할 tool은 fastify
내가 사용한 명령어를 정리하려고 작성하는 블로깅이다!
https://github.com/madame3369/inspien-test
#git repo만들고 fastify-cli 세팅이 되어있음!
#fastify로 서버에 사용할 app.js 세팅
fastify generate .
#package.json에 작성대로 install
npm install
npm run dev로 제대로 세팅이 되었는지 확인 후 접속해봄
build 과정에서 만난 에러
~/.docker/config.json 수정
{
"auths": {
"https://index.docker.io/v1/": {}
},
"credsStore": "desktop.exe",
#추가한 부분
"features": {
"buildkit": false
}
}
값 추가 및 docker image 받고 build 시도
구글링해결방안
https://tape22.tistory.com/11
https://github.com/docker/for-win/issues/11261
Docker-compose로 mongodb를 연결 시 api 컨테이너가 정상적으로 동작하는지 확인하는 과정