-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (44 loc) · 1.06 KB
/
docker-compose.yml
File metadata and controls
63 lines (44 loc) · 1.06 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: '3.8'
services:
mysql:
image: mysql:8.0
container_name: ai-qa-mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: Ai_chat
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
networks:
- ai-net
healthcheck:
test: ["CMD","mysqladmin","ping","-h","localhost","-proot"]
interval: 10s
timeout: 5s
retries: 10
app:
build: .
container_name: ai-qa-app
depends_on:
mysql:
condition: service_healthy
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mysql:3306/Ai_chat?useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: root
OPENAI_API_KEY: ${OPENAI_API_KEY}
JWT_SECRET: ${JWT_SECRET:-MySecretKeyForJWTTokenGenerationAiDocumentQA2024}
ports:
- "8080:8080"
volumes:
- uploads:/app/uploads
networks:
- ai-net
restart: unless-stopped
networks:
ai-net:
driver: bridge
volumes:
mysql_data:
uploads: