7bcfb7504f
- Added SQLAlchemy initialization script for backend setup. - Created SQLAlchemy prompts for generating database models with LLMs. - Introduced Docker Compose configuration for PostgreSQL service. - Added SQL script to enable necessary PostgreSQL extensions.
24 lines
479 B
YAML
24 lines
479 B
YAML
version: '3.8'
|
|
services:
|
|
postgres_ext:
|
|
build:
|
|
context: .
|
|
restart: always
|
|
ports:
|
|
- 55432:5432
|
|
environment:
|
|
POSTGRES_PASSWORD: mipassword
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_DB: basededatos
|
|
healthcheck:
|
|
test:
|
|
- CMD-SHELL
|
|
- pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
volumes:
|
|
postgres_data: {}
|