-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (30 loc) · 1.06 KB
/
Copy pathdocker-compose.yml
File metadata and controls
31 lines (30 loc) · 1.06 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
# SCOPE: bare Postgres only — NOT the standard local dev stack.
#
# Standard local dev is `make dev` (or ./scripts/dev.sh): it starts Supabase
# via the CLI (Postgres on 54322 + Auth + Studio etc.), migrates, seeds, and
# runs the API/MCP Workers + frontend. This file is the fallback for
# self-hosters who want to run the backend against plain Postgres instead of
# Supabase. It does NOT ship
# the `auth.*` schema that the backend's JWT middleware reads, so you must
# swap the auth verifier before this stack is usable end-to-end.
#
# Do not run this alongside `supabase start` — the bare Postgres on 5432
# isn't read by anything in the default stack and only adds confusion.
services:
postgres:
image: postgres:16-alpine
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: leadace
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
volumes:
postgres_data: