-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (47 loc) · 1.67 KB
/
Copy pathdocker-compose.yml
File metadata and controls
49 lines (47 loc) · 1.67 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
# GoodMemory HTTP bridge.
#
# SQLite (default):
# GOODMEMORY_HTTP_BRIDGE_TOKEN=<token> docker compose up -d
#
# Postgres (pgvector) profile:
# GOODMEMORY_HTTP_BRIDGE_TOKEN=<token> \
# GOODMEMORY_STORAGE_PROVIDER=postgres \
# GOODMEMORY_STORAGE_URL=postgres://goodmemory:goodmemory@postgres:5432/goodmemory \
# docker compose --profile postgres up -d
services:
goodmemory-bridge:
build: .
image: goodmemory-bridge:latest
restart: unless-stopped
ports:
- "8739:8739"
environment:
- GOODMEMORY_HTTP_BRIDGE_TOKEN=${GOODMEMORY_HTTP_BRIDGE_TOKEN:?Set a bearer token for the bridge}
- GOODMEMORY_HTTP_BRIDGE_PROFILE=${GOODMEMORY_HTTP_BRIDGE_PROFILE:-default}
# Empty string behaves as unset (the runtime resolver normalizes it), so
# plain `docker compose up` keeps the SQLite default.
- GOODMEMORY_STORAGE_PROVIDER=${GOODMEMORY_STORAGE_PROVIDER:-}
- GOODMEMORY_STORAGE_URL=${GOODMEMORY_STORAGE_URL:-}
# Coolify/VibeNest compose routing: the bridge listens on container port
# 8739, so declare the service URL with an explicit port for the proxy.
- SERVICE_URL_GOODMEMORY-BRIDGE_8739
volumes:
- goodmemory-data:/app/.goodmemory
postgres:
profiles: ["postgres"]
image: pgvector/pgvector:pg16
restart: unless-stopped
environment:
POSTGRES_USER: goodmemory
POSTGRES_PASSWORD: goodmemory
POSTGRES_DB: goodmemory
healthcheck:
test: ["CMD-SHELL", "pg_isready -U goodmemory -d goodmemory"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- goodmemory-postgres-data:/var/lib/postgresql/data
volumes:
goodmemory-data:
goodmemory-postgres-data: