-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
30 lines (29 loc) · 905 Bytes
/
Copy pathcompose.yaml
File metadata and controls
30 lines (29 loc) · 905 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
30
# Development Phylactery (Postgres + pgvector) for the migration gate.
#
# Defaults match lychd.config.settings.DatabaseSettings (user=lich, db=lychd,
# port=5432). The password is a secret at runtime; for local dev export a
# matching value for the app, e.g.:
#
# export DB_PASSWORD=lychd_dev_password
# docker compose up -d # (or: podman compose up -d)
# lych database upgrade
services:
db:
image: docker.io/pgvector/pgvector:pg18-trixie
container_name: lychd-phylactery-dev
environment:
POSTGRES_USER: lich
POSTGRES_DB: lychd
POSTGRES_PASSWORD: ${DB_PASSWORD:-lychd_dev_password}
ports:
- "5432:5432"
volumes:
- lychd_phylactery_data:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U lich -d lychd"]
interval: 5s
timeout: 5s
retries: 10
start_period: 10s
volumes:
lychd_phylactery_data: