Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions backend/src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ spring:
driver-class-name: ${PROD_DATASOURCE_DRIVER}
username: ${PROD_DATASOURCE_USERNAME}
password: ${PROD_DATASOURCE_PASSWORD}
datasource-meta:
jdbc-url: jdbc:mysql://localhost:3306/meta_db?useSSL=false&useUnicode=true&serverTimezone=Asia/Seoul&allowPublicKeyRetrieval=true&createDatabaseIfNotExist=true
driver-class-name: ${PROD_DATASOURCE_DRIVER}
username: ${PROD_DATASOURCE_USERNAME}
password: ${PROD_DATASOURCE_PASSWORD}

hikari:
maximum-pool-size: 20 # ํŠธ๋ž˜ํ”ฝ์— ๋งž์ถฐ ์กฐ์ •
minimum-idle: 5
Expand All @@ -27,6 +33,7 @@ spring:
port: ${PROD_REDIS_PORT}
password: ${PROD_REDIS_PASSWORD}
embedded: false

security:
oauth2:
client:
Expand All @@ -36,6 +43,12 @@ spring:
naver:
redirect-uri: ${PROD_OAUTH2_NAVER_REDIRECT_URI:https://api.trybalaw.com/login/oauth2/code/naver}
ai:
ollama:
base-url: http://ollama:11434
embedding:
options:
model: daynice/kure-v1:567m

vectorstore:
qdrant:
host: ${PROD_QDRANT_HOST}
Expand Down
18 changes: 18 additions & 0 deletions infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,24 @@ until curl -fs http://localhost:6333/healthz > /dev/null; do
done
echo "Qdrant ์ค€๋น„ ๋จ"

# ๋ณผ๋ฅจ ๋จผ์ € ๋งŒ๋“ค๊ธฐ(ํ•œ ๋ฒˆ๋งŒ)
docker volume create ollama-data

# ์ปจํ…Œ์ด๋„ˆ ์‹คํ–‰
docker run -d \
--name ollama \
--restart unless-stopped \
--network common \
-p 11434:11434 \
-v ollama-data:/root/.ollama \
--entrypoint /bin/sh \
--health-cmd 'curl -f http://localhost:11434/api/version || exit 1' \
--health-interval 10s \
--health-timeout 5s \
--health-retries 10 \
ollama/ollama:latest \
-c 'ollama serve & sleep 5 && ollama pull daynice/kure-v1:567m && wait'

echo "${var.github_access_token_1}" | docker login ghcr.io -u ${var.github_access_token_1_owner} --password-stdin

END_OF_FILE
Expand Down