-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
43 lines (40 loc) · 1.55 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
43 lines (40 loc) · 1.55 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
# Dev dependencies only — Postgres and Redis, loopback-published (:5432, :6379)
# — so the API can be run/debugged from the IDE (VS Code F5) against real
# backing services.
# Usage: docker compose -f deploy/docker-compose.dev.yml up -d
#
# Credentials here are LOCAL DEV defaults, not secrets. The API reads its own
# connection string from user-secrets (see .vscode/README or project setup).
# Redis is OPTIONAL for local debug: leave SharedState:Redis:ConnectionString
# unset in user-secrets to run on the in-process fallback, or set it to
# "localhost:6379" to exercise the real Redis-backed shared-state path (#543).
name: cluckwork-dev
services:
db:
image: postgres:18.4-trixie@sha256:3a82e1f56c8f0f5616a11103ac3d47e632c3938698946a7ad26da0df1334744a
environment:
POSTGRES_DB: cluckwork
POSTGRES_USER: cluckwork
POSTGRES_PASSWORD: cluckwork
ports:
- "127.0.0.1:5432:5432"
volumes:
- cluckwork-dev-pg18:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -h 127.0.0.1 -U cluckwork -d cluckwork"]
interval: 10s
timeout: 5s
retries: 5
# #543 shared-state backend, loopback-published so an IDE-run API can reach it
# at localhost:6379. Same digest-pinned image as the deploy/sim/test stacks.
redis:
image: redis:7.4-alpine@sha256:e7723ff73d963f5cc6d9c4643ea3d989527a402a319239054e9472a7fb9219a2
ports:
- "127.0.0.1:6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
volumes:
cluckwork-dev-pg18: