-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (34 loc) · 828 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (34 loc) · 828 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
version: "3.9"
services:
app:
image: madelyn2025/system-designer:latest
ports:
- "80:80"
environment:
MYSQL_USER: appuser
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_HOST: db
MYSQL_PORT: 3306
MYSQL_DB: system_design_chatbot
OPENAI_API_KEY: ${OPENAI_API_KEY}
depends_on:
db:
condition: service_healthy
restart: unless-stopped
db:
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
MYSQL_DATABASE: system_design_chatbot
MYSQL_USER: appuser
MYSQL_PASSWORD: ${DB_PASSWORD}
volumes:
- mysql_data:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
mysql_data: