-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (40 loc) · 1.05 KB
/
docker-compose.yml
File metadata and controls
44 lines (40 loc) · 1.05 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
version: '3.8'
services:
# 主应用服务
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- DATABASE_URL=file:./data/prod.db
- DEEPSEEK_API_KEY=${DEEPSEEK_API_KEY}
- DEEPSEEK_BASE_URL=${DEEPSEEK_BASE_URL:-https://api.deepseek.com/v1}
- DEEPSEEK_MODEL=${DEEPSEEK_MODEL:-deepseek-chat}
volumes:
# 挂载数据库文件到宿主机(数据持久化)
- ./data:/app/data
restart: unless-stopped
networks:
- app-network
# PostgreSQL 数据库(可选,Phase 4 使用)
# postgres:
# image: postgres:16-alpine
# environment:
# POSTGRES_USER: postgres
# POSTGRES_PASSWORD: your-secure-password
# POSTGRES_DB: personal_assistant
# volumes:
# - postgres_data:/var/lib/postgresql/data
# ports:
# - "5432:5432"
# restart: unless-stopped
# networks:
# - app-network
networks:
app-network:
driver: bridge
volumes:
postgres_data: # PostgreSQL 数据持久化