-
Notifications
You must be signed in to change notification settings - Fork 132
Expand file tree
/
Copy pathdocker-compose.full.yml
More file actions
81 lines (76 loc) · 2.31 KB
/
Copy pathdocker-compose.full.yml
File metadata and controls
81 lines (76 loc) · 2.31 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
name: deeix-chat
services:
app:
image: ${DEEIX_CHAT_IMAGE:-ghcr.io/deeix-ai/deeix-chat:latest}
container_name: deeix-chat-app
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
environment:
# Full compose connects to bundled services on the compose network.
# These environment variables override database and Redis values in config.yaml.
POSTGRES_DSN: "postgres://deeix_chat:deeix_chat_2026@postgres:5432/deeix_chat?sslmode=disable&TimeZone=Asia/Shanghai"
REDIS_ADDR: "redis:6379"
REDIS_USERNAME: ""
REDIS_PASSWORD: "deeix_chat_2026"
ports:
# Optional. Localhost-only by default. Put a reverse proxy in front for public access.
- "127.0.0.1:8080:8080"
volumes:
- app_storage:/app/storage
- app_data:/app/data
# The image runs from /app and reads /app/config.yaml automatically.
- ./config.yaml:/app/config.yaml:ro
networks:
- deeix-chat
postgres:
image: pgvector/pgvector:pg16
container_name: deeix-chat-postgres
environment:
POSTGRES_USER: deeix_chat
POSTGRES_PASSWORD: deeix_chat_2026
POSTGRES_DB: deeix_chat
ports:
# Optional. Localhost-only for local administration; the app uses the internal Docker network.
- "127.0.0.1:5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
networks:
- deeix-chat
redis:
image: redis:7
container_name: deeix-chat-redis
command: redis-server --requirepass deeix_chat_2026
ports:
# Optional. Localhost-only for local administration; the app uses the internal Docker network.
- "127.0.0.1:6379:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "-a", "deeix_chat_2026", "ping"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
networks:
- deeix-chat
volumes:
app_storage:
name: deeix-chat-app-storage
app_data:
name: deeix-chat-app-data
postgres_data:
name: deeix-chat-postgres-data
redis_data:
name: deeix-chat-redis-data
networks:
deeix-chat:
name: deeix-chat-network