-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yml
More file actions
38 lines (36 loc) · 1.19 KB
/
Copy pathcompose.yml
File metadata and controls
38 lines (36 loc) · 1.19 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
services:
postgres:
image: postgres:17-alpine
environment:
POSTGRES_DB: ${POSTGRES_DB:-app}
POSTGRES_USER: ${POSTGRES_USER:-app}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-app}
ports:
# Bind to localhost by default. scripts/docker-compose.sh injects
# worktree-specific host ports so parallel Conductor workspaces do not
# fight over one fixed Postgres port.
- "${POSTGRES_HOST_BIND:-127.0.0.1}:${POSTGRES_HOST_PORT:-8740}:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-app} -d ${POSTGRES_DB:-app}"]
interval: 10s
timeout: 3s
retries: 10
redis:
image: redis:7-alpine
command: ["redis-server", "--save", "60", "1", "--loglevel", "warning"]
ports:
# Keep Redis host binding configurable for rare LAN/container cases, but
# default to localhost for development safety.
- "${REDIS_HOST_BIND:-127.0.0.1}:${REDIS_HOST_PORT:-8750}:6379"
volumes:
- redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 3s
retries: 10
volumes:
postgres-data:
redis-data: