Skip to content

Commit 16a379b

Browse files
committed
chore : rabbitmq 로컬 개발 환경 설정
1 parent e6b7df9 commit 16a379b

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

docker-compose.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: '3.8'
2+
services:
3+
rabbitmq:
4+
image: rabbitmq:3-management
5+
container_name: local-rabbitmq
6+
ports:
7+
- "5672:5672" # AMQP
8+
- "15672:15672" # Management UI
9+
environment:
10+
RABBITMQ_DEFAULT_USER: guest
11+
RABBITMQ_DEFAULT_PASS: guest
12+
restart: unless-stopped
13+
volumes:
14+
- rabbitmq-data:/var/lib/rabbitmq
15+
16+
volumes:
17+
rabbitmq-data:

src/main/resources/application.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ spring:
3535
options:
3636
model: meta-llama/llama-4-scout-17b-16e-instruct
3737
temperature: 0
38-
38+
rabbitmq:
39+
host: ${SPRING_RABBITMQ_HOST:localhost}
40+
port: 5672
41+
username: ${SPRING_RABBITMQ_USERNAME:guest}
42+
password: ${SPRING_RABBITMQ_PASSWORD:guest}
3943

4044
springdoc:
4145
default-produces-media-type: application/json;charset=UTF-8

0 commit comments

Comments
 (0)