-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
29 lines (27 loc) · 896 Bytes
/
docker-compose.yml
File metadata and controls
29 lines (27 loc) · 896 Bytes
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
services:
mongodb:
image: mongo:8.0
ports:
- "27017:27017"
volumes:
- mongodb-data:/data/db
environment:
# No auth — matches local dev defaults (MONGODB_USERNAME/PASSWORD empty in .env)
MONGO_INITDB_DATABASE: epic
# --replSet rs0 enables the oplog required for Change Streams (Typesense sync).
# Run rs.initiate() once after first start: docker compose exec mongodb mongosh --eval "rs.initiate()"
command: ["--replSet", "rs0"]
typesense:
image: typesense/typesense:30.1
ports:
- "8108:8108"
volumes:
- typesense-data:/data
environment:
TYPESENSE_API_KEY: local-dev-key
command: ["--data-dir=/data", "--api-key=local-dev-key", "--enable-cors"]
# Health check: curl http://localhost:8108/health
# Populate data: node typesense-sync/src/full-sync.js
volumes:
mongodb-data:
typesense-data: