-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
40 lines (37 loc) · 1.2 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
40 lines (37 loc) · 1.2 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
# Development infrastructure only: not for production.
# Usage: bun run dev:deps
#
# Provides Postgres (with pgvector) and Valkey for local development/testing.
# The app itself is NOT containerised here: run it with `bun run dev`.
services:
postgres:
image: pgvector/pgvector:pg17
# Host port 55432 chosen to avoid colliding with a default Postgres install
# (or another project's compose stack) already bound to 5432. Container-side
# port stays 5432, so DATABASE_URL inside any sibling container is unchanged.
ports:
- "127.0.0.1:55432:5432"
environment:
POSTGRES_USER: bot
POSTGRES_PASSWORD: bot
POSTGRES_DB: github_app
volumes:
- pgdata:/var/lib/postgresql/data
- ./scripts/init-test-db.sql:/docker-entrypoint-initdb.d/init-test-db.sql:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U bot -d github_app"]
interval: 5s
timeout: 3s
retries: 5
valkey:
image: valkey/valkey:9
# Host port 56379 chosen for the same reason as postgres above.
ports:
- "127.0.0.1:56379:6379"
healthcheck:
test: ["CMD", "valkey-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
volumes:
pgdata: