일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
- nextjs
- Spring MVC
- MySQL
- hibernate
- test
- namedqueries
- Intellij
- content-type
- Spring
- junit
- docker-compose
- ExceptionHandler
- Example
- HttpHeader
- RESTful
- Redis
- docker
- mock
- jsonview
- Today
- Total
목록docker (3)
hellokiseok
Docker # 간단 버전 docker run --name redis -d -p 6379:6379 redis redis-server # 인증 추가 docker run --name redis -d -p 6379:6379 redis redis-server --requirepass 1234 Docker-compose docker-compose.yml version: '3.1' services: redis: image: redis command: --requirepass 1234 restart: always ports: - 6379:6379 docker-compose -f docker-compose.yml -p redis up Kubernetes Deployment apiVersion: apps/v1 kind:..
Docker # 간단 버전 docker run --name mysql -p 3306:3306 -d mysql # 많이 쓰는 설정 docker run --name mysql -p 3306:3306 -e MYSQL_USER=admin -e MYSQL_ROOT_PASSWORD=secret -d mysql --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci 특정 버전 지정 : docker run -p 3306:3306 mysql:8.0 ("mysql:8.0" 해당 부분을 수정해주면 됩니다.) 버전 목록 : https://hub.docker.com/_/mysql?tab=tags Docker-compose docker-compose.yml ve..
https://flaviocopes.com/how-to-install-nextjs/ 프로젝트 생성 npm init next-app파일 및 디렉토리 구조 .next/ node_modules/ pages/ public/ Dockerfile package.json package-lock.json README.mdDockerfile FROM node WORKDIR /usr/src/app COPY package*.json ./ RUN npm i -y COPY . . EXPOSE 3000 CMD [ "npm", "run", "dev"]빌드 & 실행 docker build --tag mynextjs . docker run -d -p 3000:3000 mynextjs