Skip to content

Commit e4cb1ee

Browse files
dotMavriQclaude
andcommitted
feat: add local dev docker-compose for PostgreSQL via Podman
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 894772a commit e4cb1ee

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

docker-compose.dev.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# =============================================================================
2+
# TEAL Local Development
3+
# Just PostgreSQL in a container, everything else runs natively
4+
# =============================================================================
5+
#
6+
# Usage:
7+
# podman-compose -f docker-compose.dev.yml up -d # Start Postgres
8+
# podman-compose -f docker-compose.dev.yml down # Stop Postgres
9+
# podman-compose -f docker-compose.dev.yml down -v # Stop + wipe data
10+
#
11+
# Then run the app natively:
12+
# composer run dev
13+
# =============================================================================
14+
15+
services:
16+
db:
17+
image: postgres:17-alpine
18+
container_name: teal-dev-db
19+
restart: unless-stopped
20+
environment:
21+
POSTGRES_DB: teal
22+
POSTGRES_USER: teal
23+
POSTGRES_PASSWORD: secret
24+
ports:
25+
- "5432:5432"
26+
volumes:
27+
- teal-dev-db-data:/var/lib/postgresql/data
28+
healthcheck:
29+
test: ["CMD-SHELL", "pg_isready -U teal -d teal"]
30+
interval: 5s
31+
timeout: 5s
32+
retries: 10
33+
34+
volumes:
35+
teal-dev-db-data:

0 commit comments

Comments
 (0)