Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
112 lines (99 loc) · 2.68 KB
/
Copy pathdocker-compose.yml
File metadata and controls
112 lines (99 loc) · 2.68 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
services:
suixinji:
build: .
env_file:
- .env
volumes:
- ./data:/app/data
restart: unless-stopped
postgres:
image: pgvector/pgvector:pg16
profiles: ["local-infra"]
environment:
POSTGRES_DB: ${POSTGRES_DB:-suixinji}
POSTGRES_USER: ${POSTGRES_USER:-suixinji}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?set POSTGRES_PASSWORD in .env}
ports:
- "127.0.0.1:5432:5432"
volumes:
- suixinji-postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U suixinji -d suixinji"]
interval: 5s
timeout: 3s
retries: 10
redis:
image: redis:7-alpine
profiles: ["local-infra"]
command: ["redis-server", "--appendonly", "no", "--save", "", "--requirepass", "${REDIS_PASSWORD:?set REDIS_PASSWORD in .env}"]
ports:
- "127.0.0.1:6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 10
receiver:
build: .
profiles: ["distributed"]
env_file: [.env]
command: ["python", "-m", "bot.feishu_bot"]
restart: unless-stopped
outbox-relay:
build: .
profiles: ["distributed"]
env_file: [.env]
command: ["python", "-m", "apps.outbox_relay"]
restart: unless-stopped
worker-ingest:
build: .
profiles: ["distributed"]
env_file: [.env]
command: ["python", "-m", "apps.worker", "ingest"]
restart: unless-stopped
worker-query:
build: .
profiles: ["distributed"]
env_file: [.env]
command: ["python", "-m", "apps.worker", "query"]
restart: unless-stopped
worker-summary:
build: .
profiles: ["distributed"]
env_file: [.env]
command: ["python", "-m", "apps.worker", "summary"]
restart: unless-stopped
worker-memory:
build: .
profiles: ["distributed"]
env_file: [.env]
command: ["python", "-m", "apps.worker", "memory"]
restart: unless-stopped
worker-semantic-profile-projection:
build: .
profiles: ["distributed"]
env_file: [.env]
command: ["python", "-m", "apps.worker", "semantic_profile_projection"]
restart: unless-stopped
worker-delivery:
build: .
profiles: ["distributed"]
env_file: [.env]
command: ["python", "-m", "apps.worker", "delivery"]
restart: unless-stopped
scheduler:
build: .
profiles: ["distributed"]
env_file: [.env]
command: ["python", "-m", "apps.scheduler"]
restart: unless-stopped
api:
build: .
profiles: ["distributed"]
env_file: [.env]
command: ["uvicorn", "apps.api:app", "--host", "127.0.0.1", "--port", "8000"]
ports:
- "127.0.0.1:8000:8000"
restart: unless-stopped
volumes:
suixinji-postgres: