-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (44 loc) · 1.21 KB
/
Copy pathdocker-compose.yml
File metadata and controls
47 lines (44 loc) · 1.21 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
services:
qdrant:
image: qdrant/qdrant:v1.17.1
ports:
- "6333:6333"
- "6334:6334"
volumes:
- ./qdrant_storage:/qdrant/storage
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:6333/healthz"]
interval: 10s
timeout: 5s
retries: 3
start_period: 5s
mongodb:
image: mongo:7
ports:
- "27017:27017"
volumes:
- mongo_data:/data/db
- ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
restart: unless-stopped
command: ["--replSet", "rs0"]
healthcheck:
test: ["CMD", "mongosh", "--eval", "rs.status()"]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
mongo-express:
image: mongo-express:latest
depends_on:
- mongodb
ports:
- "8081:8081"
environment:
ME_CONFIG_MONGODB_URL: mongodb://mongodb:27017/${MONGO_DB_NAME:-ai-writing-assistant}?directConnection=true
ME_CONFIG_BASICAUTH: "true"
ME_CONFIG_BASICAUTH_USERNAME: ${ME_CONFIG_BASICAUTH_USERNAME}
ME_CONFIG_BASICAUTH_PASSWORD: ${ME_CONFIG_BASICAUTH_PASSWORD}
restart: unless-stopped
volumes:
mongo_data: