File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 :
You can’t perform that action at this time.
0 commit comments