-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (32 loc) · 1 KB
/
docker-compose.yml
File metadata and controls
34 lines (32 loc) · 1 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
32
33
34
# Tabadul — Docker Compose (Local Development)
#
# This file provides a fallback PostgreSQL instance for local development.
#
# RECOMMENDED: Use `supabase start` instead — it spins up the full Supabase
# stack (PostgreSQL, Auth, Storage, Realtime, Studio, Edge Functions) via
# Docker automatically. This compose file is for scenarios where you need
# a standalone PostgreSQL without the full Supabase stack.
#
# Usage:
# docker compose up -d # Start services
# docker compose down # Stop services
# docker compose down -v # Stop and remove volumes (reset data)
services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
ports:
- '5432:5432'
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: tabadul_dev
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres_data: