-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.shared.yml
More file actions
33 lines (30 loc) · 847 Bytes
/
Copy pathcompose.shared.yml
File metadata and controls
33 lines (30 loc) · 847 Bytes
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
# Shared PostgreSQL service for all worktrees
# Usage: docker compose -p teamdev-2026-shared -f compose.shared.yml up -d
# This service is exposed on localhost:5432 and all worktrees connect to it via Docker network
services:
postgresql:
image: postgres:14.7
restart: always
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: user
POSTGRES_DB: posse
volumes:
- ./docker/postgresql/initdb.d:/docker-entrypoint-initdb.d
- shared-db-store:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- teamdev-2026-shared
healthcheck:
test: ["CMD-SHELL", "pg_isready -U user -d posse"]
interval: 10s
timeout: 5s
retries: 5
volumes:
shared-db-store:
driver: local
networks:
teamdev-2026-shared:
driver: bridge
name: teamdev-2026-shared