-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (41 loc) · 1.18 KB
/
docker-compose.yml
File metadata and controls
43 lines (41 loc) · 1.18 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
services:
# Uncomment this service to run a local Typesense instance
# typesense:
# image: typesense/typesense:27.1
# container_name: typesense
# restart: unless-stopped
# ports:
# - "8108:8108"
# volumes:
# - typesense-data:/data
# environment:
# - TYPESENSE_DATA_DIR=/data
# - TYPESENSE_API_KEY=${TYPESENSE_API_KEY:-xyz}
# - TYPESENSE_ENABLE_CORS=true
# command: '--data-dir /data --api-key=${TYPESENSE_API_KEY:-xyz} --enable-cors'
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:8108/health"]
# interval: 10s
# timeout: 5s
# retries: 3
# start_period: 10s
explorer:
build: .
container_name: typesense-explorer
restart: unless-stopped
ports:
- "3000:3000"
env_file: .env
environment:
- NODE_ENV=production
- PORT=3000
# Uncomment and set these to override .env for a local Typesense container:
# - TYPESENSE_HOST=typesense
# - TYPESENSE_PORT=8108
# - TYPESENSE_PROTOCOL=http
# depends_on:
# typesense:
# condition: service_healthy
# Uncomment for local Typesense data persistence
# volumes:
# typesense-data: