-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.example.yml
More file actions
66 lines (62 loc) · 1.75 KB
/
docker-compose.example.yml
File metadata and controls
66 lines (62 loc) · 1.75 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
# Example docker-compose setup for the memory backend.
#
# Copy to docker-compose.yml and edit if you need to:
# - change the host port
# - persist data outside the default named volume
# - point at a pre-existing PostgreSQL instance instead of the bundled one
#
# Start: docker compose -f docker-compose.example.yml up -d
# Stop: docker compose -f docker-compose.example.yml down
# Wipe: docker compose -f docker-compose.example.yml down -v
services:
postgres:
image: pgvector/pgvector:pg16
container_name: memexa-pg
restart: unless-stopped
environment:
POSTGRES_USER: memexa
POSTGRES_PASSWORD: memexa_dev
POSTGRES_DB: memexa
ports:
- "5433:5432"
volumes:
- pg-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U memexa -d memexa"]
interval: 10s
timeout: 5s
retries: 5
hindsight:
image: ghcr.io/vectorize-io/hindsight-api:latest
container_name: memexa-hindsight
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
environment:
HINDSIGHT_DATABASE_URL: postgresql://memexa:memexa_dev@postgres:5432/memexa
HINDSIGHT_HOST: 0.0.0.0
HINDSIGHT_PORT: 8888
HINDSIGHT_LOG_LEVEL: info
ports:
- "8888:8888"
healthcheck:
test: ["CMD-SHELL", "curl -sf http://127.0.0.1:8888/healthz || exit 1"]
interval: 15s
timeout: 5s
retries: 8
dashboard:
build:
context: .
dockerfile: docker/dashboard.Dockerfile
container_name: memexa-dashboard
restart: unless-stopped
depends_on:
hindsight:
condition: service_healthy
environment:
MEMEXA_HINDSIGHT_URL: http://hindsight:8888
ports:
- "8765:8765"
volumes:
pg-data: