feat(P2603): sistema de bitácoras web dtic-BITACORAs - React 18 + Node.js + PostgreSQL

This commit is contained in:
Ricardo Monla
2026-03-03 12:50:10 -03:00
parent 2685989e77
commit 680dbe6f8d
33 changed files with 1036 additions and 7 deletions
+47
View File
@@ -0,0 +1,47 @@
services:
postgres:
image: postgres:15-alpine
environment:
POSTGRES_USER: dtic_user
POSTGRES_PASSWORD: dtic_pass_2026
POSTGRES_DB: dtic_bitacoras
ports:
- "5433:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./docker/init.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U dtic_user -d dtic_bitacoras"]
interval: 5s
timeout: 5s
retries: 5
api:
build: ./backend
ports:
- "3002:3001"
environment:
NODE_ENV: development
PORT: 3001
DATABASE_URL: postgres://dtic_user:dtic_pass_2026@postgres:5432/dtic_bitacoras
JWT_SECRET: dtic_bitacoras_secret_2026
CORS_ORIGIN: "*"
depends_on:
postgres:
condition: service_healthy
volumes:
- ./backend/src:/app/src
frontend:
build: ./frontend
ports:
- "5174:5173"
environment:
VITE_API_URL: http://localhost:3002
depends_on:
- api
volumes:
- ./frontend/src:/app/src
volumes:
postgres_data: