-
Notifications
You must be signed in to change notification settings - Fork 451
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
35 lines (33 loc) · 1.05 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
35 lines (33 loc) · 1.05 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
# Host-backed development infra. Project name keeps containers separate from
# docker-compose.yml. Host ports match packages/trueforge/.env defaults.
name: trueforge-dev
services:
postgres:
image: postgres:17
env_file:
- path: packages/trueforge/.env
required: true
# Loopback-only: this stack is for local use, and the port carries a database.
ports:
- '127.0.0.1:5432:5432'
volumes:
- ./data/dev/postgres:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U "$$POSTGRES_USER" -d "$$POSTGRES_DB"']
interval: 5s
timeout: 5s
retries: 10
restart: unless-stopped
# Shared by all server replicas: carries executor peering (cross-replica
# turn cancel via request-reply).
redis:
image: redis:7-alpine
# Loopback-only: Redis runs unauthenticated and carries live peering traffic.
ports:
- '127.0.0.1:6379:6379'
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 5s
timeout: 3s
retries: 5
restart: unless-stopped