-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (36 loc) · 933 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
39 lines (36 loc) · 933 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
31
32
33
34
35
36
37
38
39
# Local dev backing services: Postgres (with pgvector) + Redis.
# Non-default host ports to avoid colliding with other local containers.
#
# docker compose up -d
# export DATABASE_URL=postgres://aidm:aidm@localhost:5433/aidm
# export REDIS_URL=redis://localhost:6380
# npm run dev:server
services:
postgres:
image: pgvector/pgvector:pg16
container_name: ai-dm-postgres
environment:
POSTGRES_USER: aidm
POSTGRES_PASSWORD: aidm
POSTGRES_DB: aidm
ports:
- "5433:5432"
volumes:
- ai-dm-pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U aidm"]
interval: 5s
timeout: 3s
retries: 10
redis:
image: redis:7-alpine
container_name: ai-dm-redis
ports:
- "6380:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 10
volumes:
ai-dm-pgdata: