- μ΄ λ ν¬μ§ν 리λ μλ Backend Serverμ FastAPI Serverμ λλ€.
- Spring Boot Serverμ λ ν¬μ§ν λ¦¬λ‘ μ΄λν©λλ€.
(μ€ννκ³ μ νλ μλ²μ ν΄λ λ΄μμ λ€μμ λͺ λ Ήμ΄ μ€ν)
cd gpt
uvicorn main:app --reload --port=8000
cd posting
uvicorn main:app --reload --port=8001
cd storage
uvicorn main:app --reload --port=8002
- λ컀 μ΄λ―Έμ§ λΉλ
docker build \
--build-arg OPENAI_KEY="$OPENAI_KEY" \
--build-arg REST_API_KEY="$REST_API_KEY" \
--build-arg MAX_TOKENS="$MAX_TOKENS" \
--build-arg TEMPERATURE="$TEMPERATURE" \
--build-arg TOP_P="$TOP_P" \
--build-arg N="$N" \
-t gpt-image:latest \
-f gpt.Dockerfile .
docker build \
--build-arg BASE_URL="$BASE_URL" \
--build-arg GPT_PORT="$GPT_PORT" \
--build-arg POSTING_PORT="$POSTING_PORT" \
--build-arg STORAGE_PORT="$STORAGE_PORT" \
--build-arg KOGPT_API="$KOGPT_API" \
--build-arg CHATGPT_API="$CHATGPT_API" \
-t posting-image:latest \
-f posting.Dockerfile .
docker build \
--build-arg BASE_URL="$BASE_URL" \
--build-arg GPT_PORT="$GPT_PORT" \
--build-arg POSTING_PORT="$POSTING_PORT" \
--build-arg STORAGE_PORT="$STORAGE_PORT" \
--build-arg IBM_API_KEY="${IBM_API_KEY}" \
--build-arg IBM_CLOUD_URL="${IBM_CLOUD_URL}" \
--build-arg IBM_TOKEN_URL="${IBM_TOKEN_URL}" \
--build-arg BUCKET_NAME="${BUCKET_NAME}" \
-t storage-image:latest \
-f storage.Dockerfile .
docker run -p 8000:8000 gpt-image:latest
docker run -p 8001:8001 posting-image:latest
docker run -p 8002:8002 storage-image:latest
-
Microservice Architecture
-
μ΅μ μ GPT ν둬νν° μ€ν
- νκ², SNS μ±λ νΉμ κ²°κ³Ό νμ μ λ°λ₯Έ ν둬νν° λΆλ¦¬
- νκ² λ° SNS μ±λμ λ°λ₯Έ ν둬νν° μμ μ°¨λ³
- μ νν μμλ₯Ό μν 곡μ λ¬Έμ μ°Έμ‘°
-
μ΄λ―Έμ§μ κΈμ νΈμ§ κΈ°λ₯
- νΉμ κΈκΌ΄μ μ¬μ©νμ¬ κΈμ¨μ μ΄μ€ λ°κΉ₯ ν
λ리 ꡬν
- κΈκΌ΄: μΌλ¦½νΈλΉ΅μ²΄
- κΈμμμ λ°λ₯Έ κΈμ¨ ν¬κΈ° μλ μ‘°μ
- νΉμ κΈκΌ΄μ μ¬μ©νμ¬ κΈμ¨μ μ΄μ€ λ°κΉ₯ ν
λ리 ꡬν
κΈ°λ₯ ꡬν μ | κΈ°λ₯ ꡬν ν |
---|---|
- κΈμ ν¬κΈ°μ λ°λ₯Έ κΈμ μμΉ μλ μ‘°μ
- μ΄λ―Έμ§μ μ°μΈ‘ μλ¨μ λ‘κ³ μ½μ
- κΈμ ν¬κΈ° ꡬνκΈ° (PIL λΌμ΄λΈλ¬λ¦¬ μ΄μ© X)
- λ²μ μ κ·Έλ μ΄λμ λ°λ₯Έ λ©μλ μμ
- μΌμ ν κΈμ μ½μ μ μν μ¬μ©μ μ΄λ―Έμ§ ν¬κΈ° μ‘°μ
μν | μ’ λ₯ |
---|---|
Framework | Spring Boot, Spring, FastAPI |
Database | MySQL |
Server | Oracle, Certbot |
Language | Java, Python |
API | REST |
Version Control | Git, Github |
Communication | Discord, Notion |
μμ±λ¦° | μ μ°¬νΈ |
---|---|
chaeeerish | chjung99 |
κ²½κΈ°λνκ΅ λ―Έλ₯΄λ―Έ | μΈμ’ λνκ΅ λ―Έλ₯΄λ―Έ |