27 lines
595 B
YAML
27 lines
595 B
YAML
version: '3.8'
|
|
|
|
# Development docker-compose - only runs the database
|
|
# The Next.js app runs locally with npm run dev
|
|
|
|
services:
|
|
db:
|
|
image: postgres:16-alpine
|
|
container_name: prompts-chat-db-dev
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: prompts_chat
|
|
volumes:
|
|
- postgres_data_dev:/var/lib/postgresql/data
|
|
ports:
|
|
- "5433:5432"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
volumes:
|
|
postgres_data_dev:
|