-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (56 loc) · 1.33 KB
/
docker-compose.yml
File metadata and controls
61 lines (56 loc) · 1.33 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
version: "3.9"
services:
postgres:
image: postgres:16-alpine
container_name: themahdiai-postgres
restart: unless-stopped
profiles: ["infra"] # Opsional: Gunakan external host jika sudah ada di PVE
environment:
POSTGRES_DB: themahdiai
POSTGRES_USER: themahdiai
POSTGRES_PASSWORD: development_password
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U themahdiai -d themahdiai"]
interval: 10s
timeout: 5s
retries: 5
networks:
- themahdiai-net
redis:
image: redis:7-alpine
container_name: themahdiai-redis
restart: unless-stopped
profiles: ["infra"] # Opsional: Gunakan external host jika sudah ada di PVE
ports:
- "6379:6379"
volumes:
- redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
networks:
- themahdiai-net
qdrant:
image: qdrant/qdrant:v1.12.1
container_name: themahdiai-qdrant
restart: unless-stopped
ports:
- "6333:6333"
- "6334:6334"
volumes:
- qdrant-data:/qdrant/storage
networks:
- themahdiai-net
volumes:
postgres-data:
redis-data:
qdrant-data:
networks:
themahdiai-net:
driver: bridge