-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker-compose를 이용한 로컬 개발환경 구성, 문서 보강, color 벨리데이션 추가 (#112)
* up: 버전 업 * doc: 기본 적인 설명 수정 * doc: api 호출 경로 변경 * up: 로컬 환경에서 다른 서비스와 포트가 겹침으로 변경 * up: 내용이 없는 경우 안내 표시 및 벨리데이션 보강 * add: local에서 docker으로 실행하는 설명 추가 * docs: 설명 보강 * up: url에 맞는 올바른 변수명 으로 교체 * fix: docker container 내부에서도 앱이 정상적으로 실행되도록 수정 * add: 이미지 완전히 업로드 여부 이모지 추가
- Loading branch information
Showing
18 changed files
with
155 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
NEXT_PUBLIC_API_GATEWAY_URL=https://api-gateway.qa.belf.xyz | ||
NEXT_PUBLIC_OAUTH_SERVER_URL=http://localhost:8080 | ||
NEXT_PUBLIC_STORAGE_SERVER_URL=https://storage.qa.belf.xyz | ||
NEXT_PUBLIC_API_GATEWAY_URL=http://localhost:3000 | ||
NEXT_PUBLIC_OAUTH_SERVER_URL=http://localhost:3001 | ||
NEXT_PUBLIC_STORAGE_SERVER_URL=http://localhost:3004 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM node:14.16.1 | ||
|
||
# 앱 디렉터리 생성 | ||
WORKDIR /usr/src/app | ||
|
||
# 앱 의존성 설치: package.json과 package-lock.json을 모두 복사하기 위해 와일드카드를 사용 | ||
COPY package*.json ./ | ||
|
||
RUN npm i | ||
|
||
# 앱 소스 추가 | ||
COPY . . | ||
|
||
# dev 환경으로 빌드 | ||
RUN npm run build:dev | ||
|
||
CMD [ "npm", "run", "start" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: "3.7" | ||
services: | ||
front-server: | ||
build: | ||
context: ./ | ||
dockerfile: Dockerfile.dev | ||
image: belf-front-server | ||
container_name: front-server-dev | ||
ports: | ||
- 2999:3000 | ||
environment: | ||
- SERVICE_RUNNING_IN_DOCKER=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { apiClient } from "../api-client"; | ||
import { apiGatewayClient } from "../api-client"; | ||
|
||
export async function getColors(): Promise<string[]> { | ||
const { data } = await apiClient.get<string[]>(`/colors`); | ||
const { data } = await apiGatewayClient.get<string[]>(`/todo/colors`); | ||
return data; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.