-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (42 loc) · 1.21 KB
/
Copy pathdocker-compose.yml
File metadata and controls
44 lines (42 loc) · 1.21 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
44
# Local dev infrastructure for PatchPilot durable persistence + queue.
# These are LOCAL DEV containers only — the credentials below are throwaway and
# must never be used in production. Start with: docker compose up -d
#
# Then in .env:
# PATCHPILOT_PERSIST_POSTGRES=true
# DATABASE_URL=postgresql://patchpilot:patchpilot@localhost:5432/patchpilot
# PATCHPILOT_QUEUE_MODE=redis
# REDIS_URL=redis://localhost:6379
services:
postgres:
image: postgres:16-alpine
container_name: patchpilot-postgres
environment:
POSTGRES_USER: patchpilot
POSTGRES_PASSWORD: patchpilot
POSTGRES_DB: patchpilot
ports:
- "5432:5432"
volumes:
- patchpilot-pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U patchpilot -d patchpilot"]
interval: 5s
timeout: 3s
retries: 10
redis:
image: redis:7-alpine
container_name: patchpilot-redis
ports:
- "6379:6379"
volumes:
- patchpilot-redisdata:/data
command: ["redis-server", "--appendonly", "yes"]
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 10
volumes:
patchpilot-pgdata:
patchpilot-redisdata: