-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (31 loc) · 957 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
33 lines (31 loc) · 957 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
# Local Postgres for dev parity with Neon (Phase 11 production target).
#
# Usage:
# docker compose up -d
# export VEGA_DATABASE_URL=postgresql+psycopg://vega:vega@localhost:5432/vega
# uv --project backend run alembic upgrade head
# uv --project backend run vega-serve
#
# The default password here is intentionally weak: this stack listens on
# 127.0.0.1 only and is for local dev. Production uses the managed Neon
# DSN injected via Render env vars (see docs/security/secrets.md).
services:
postgres:
image: postgres:16-alpine
container_name: vega-postgres
restart: unless-stopped
environment:
POSTGRES_USER: vega
POSTGRES_PASSWORD: vega
POSTGRES_DB: vega
ports:
- "127.0.0.1:5432:5432"
volumes:
- vega-pg-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U vega -d vega"]
interval: 5s
timeout: 3s
retries: 5
volumes:
vega-pg-data: