forked from extinctmule/ktb-BootcampChat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
44 lines (39 loc) · 949 Bytes
/
docker-compose.yaml
File metadata and controls
44 lines (39 loc) · 949 Bytes
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
version: '3.8'
services:
frontend:
image: hyesushim/boo-test-fe:latest
ports:
- "3000:3000"
depends_on:
- backend
backend:
image: hyesushim/boo-test-be:latest
ports:
- "5000:5000"
environment:
MONGO_URI: mongodb://mongodb:27017/bootcampchat
JWT_SECRET: your_jwt_token
REDIS_HOST: redis
REDIS_PORT: 6379
OPENAI_API_KEY: **********
ENCRYPTION_KEY: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
PASSWORD_SALT: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
PORT: 5000
depends_on:
- mongodb
- redis
mongodb:
image: mongo:7.0
container_name: mongodb
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
redis:
image: redis:7.0
container_name: redis
ports:
- "6379:6379"
command: ["redis-server", "--appendonly", "yes"] # 데이터 영구 저장 옵션
volumes:
mongodb_data: