-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (71 loc) · 1.93 KB
/
Copy pathdocker-compose.yml
File metadata and controls
75 lines (71 loc) · 1.93 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
64
65
66
67
68
69
70
71
72
73
74
75
services:
# PostgreSQL Database (optional - can use external database instead)
postgres:
image: postgres:15-alpine
container_name: minderai-postgres
restart: unless-stopped
environment:
POSTGRES_USER: minderai
POSTGRES_PASSWORD: minderai_secure_password
POSTGRES_DB: minderai
volumes:
- minderai_postgres_data:/var/lib/postgresql/data
networks:
- minderai-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U minderai -d minderai"]
interval: 10s
timeout: 5s
retries: 5
# Backend API Service
backend:
build:
context: ./backend
dockerfile: Dockerfile
args:
# 国内构建:在 .env 中设 USE_CN_MIRROR=1 以使用清华 Debian 镜像加速 apt
USE_CN_MIRROR: ${USE_CN_MIRROR:-0}
container_name: minderai-backend
restart: unless-stopped
environment:
DATABASE_URL: ${DATABASE_URL}
SILICONFLOW_API_KEY: ${SILICONFLOW_API_KEY}
QWEN_API_KEY: ${QWEN_API_KEY}
SERPER_API_KEY: ${SERPER_API_KEY}
BCE_ACCESS_KEY: ${BCE_ACCESS_KEY}
BCE_SECRET_KEY: ${BCE_SECRET_KEY}
JWT_SECRET: ${JWT_SECRET}
UPLOAD_DIR: /app/uploads
PROMPTS_DIR: /app/prompts
volumes:
- minderai_uploads:/app/uploads
- ./prompts:/app/prompts:ro
networks:
- minderai-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Frontend Web Service
# Accessible via the global Caddy reverse proxy (proxy-net)
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: minderai-frontend
restart: unless-stopped
networks:
- minderai-network
- proxy-net
depends_on:
- backend
networks:
minderai-network:
driver: bridge
proxy-net:
external: true
volumes:
minderai_postgres_data:
minderai_uploads: