From ab4317e1055bba4eb81b045003c6bc03d4043214 Mon Sep 17 00:00:00 2001 From: Ben Stull Date: Wed, 10 Jun 2026 08:35:53 -0700 Subject: [PATCH] =?UTF-8?q?feat(slice-1):=20dev=20Postgres=20compose=20?= =?UTF-8?q?=E2=80=94=20single=20pinned=20service,=20named=20volume=20(D-7)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 (1M context) --- compose.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 compose.yaml diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..4c93c46 --- /dev/null +++ b/compose.yaml @@ -0,0 +1,26 @@ +# Dev datastore for ecomm — a single pinned PostgreSQL service (SD-0001 D-7). +# The app runs natively (fast dev loop); only the database is containerized. +# `scripts/dev.sh` owns this container's lifecycle. Reset to empty (to rehearse the +# bootstrap, BUC-5) with: docker compose down -v +name: ecomm-dev + +services: + db: + # Pinned to the Cloud SQL major version ecomm targets in PPE/Prod (D-7). + image: postgres:16 + environment: + POSTGRES_USER: ecomm + POSTGRES_PASSWORD: ecomm + POSTGRES_DB: ecomm + ports: + - "5432:5432" + volumes: + - ecomm-pgdata:/var/lib/postgresql/data + healthcheck: + test: ["CMD-SHELL", "pg_isready -U ecomm -d ecomm"] + interval: 2s + timeout: 3s + retries: 30 + +volumes: + ecomm-pgdata: