-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (49 loc) · 1.28 KB
/
docker-compose.yml
File metadata and controls
52 lines (49 loc) · 1.28 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
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: agentscan-backend
ports:
- "8001:8000"
volumes:
# 持久化 SQLite 数据库
- ./data:/app/data
# 持久化日志
- ./logs/backend:/app/logs
environment:
- DATABASE_URL=sqlite:///./data/8004scan.db
- CORS_ORIGINS=http://localhost:3000,https://agentscan.info,https://www.agentscan.info,http://agentscan.info,http://www.agentscan.info
env_file:
- ./backend/.env
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"]
interval: 5s
timeout: 3s
retries: 10
start_period: 30s
networks:
- agentscan-network
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
- NEXT_PUBLIC_API_URL=/api
- NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=${NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID:-}
container_name: agentscan-frontend
ports:
- "3000:3000"
depends_on:
backend:
condition: service_healthy
restart: unless-stopped
networks:
- agentscan-network
networks:
agentscan-network:
driver: bridge
volumes:
data:
logs: