forked from 195440/nof1.ai
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
44 lines (41 loc) · 976 Bytes
/
docker-compose.prod.yml
File metadata and controls
44 lines (41 loc) · 976 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
version: '3.8'
services:
open-nof1-ai:
image: open-nof1.ai:latest
container_name: open-nof1.ai-prod
restart: always
ports:
- "${PORT:-3100}:3100"
env_file:
- .env.production
environment:
- NODE_ENV=production
- TZ=Asia/Shanghai
volumes:
# 生产环境数据持久化
- ./voltagent-data:/app/.voltagent
- ./logs:/app/logs
networks:
- trading-network
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3100/api/health', (r) => process.exit(r.statusCode === 200 ? 0 : 1))"]
interval: 30s
timeout: 10s
retries: 5
start_period: 60s
deploy:
resources:
limits:
cpus: '2'
memory: 1G
reservations:
cpus: '0.5'
memory: 512M
logging:
driver: "json-file"
options:
max-size: "50m"
max-file: "5"
networks:
trading-network:
driver: bridge