Integrar autenticación Cognito con Floci local y soporte AWS
- Añade servicios y configuración Cognito para login web (admins) y API (scanners) - Soporta Floci cuando AWS_ENDPOINT_URL está definido; AWS real en caso contrario - Incluye bootstrap Floci, docker-compose.local.yml y carga automática en run-local.sh - Documenta arquitectura, flujos y arranque manual/IntelliJ en README - Actualiza gitignore: excluye Flutter, H2 local y artefactos generados
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16
|
||||
container_name: base-admin-web-postgres
|
||||
environment:
|
||||
POSTGRES_DB: base_admin_web
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: postgres
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- base_admin_web_postgres_data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U postgres -d base_admin_web"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
|
||||
floci:
|
||||
image: floci/floci:latest-compat
|
||||
container_name: base-admin-web-floci
|
||||
ports:
|
||||
- "4566:4566"
|
||||
volumes:
|
||||
- base_admin_web_floci_data:/app/data
|
||||
- ./docker/floci/init/ready.d:/etc/floci/init/ready.d:ro
|
||||
- ./docker/floci/generated:/generated
|
||||
environment:
|
||||
FLOCI_HOSTNAME: floci
|
||||
FLOCI_STORAGE_MODE: persistent
|
||||
FLOCI_STORAGE_PERSISTENT_PATH: /app/data
|
||||
FLOCI_DEFAULT_REGION: us-east-1
|
||||
FLOCI_DEFAULT_ACCOUNT_ID: "000000000000"
|
||||
FLOCI_INIT_HOOKS_TIMEOUT_SECONDS: "120"
|
||||
COGNITO_USER_POOL_ID: us-east-1_BaseAdminWeb
|
||||
COGNITO_ADMIN_USERNAME: admin
|
||||
COGNITO_ADMIN_PASSWORD: Admin123*
|
||||
COGNITO_SCANNER_USERNAME: scanner
|
||||
COGNITO_SCANNER_PASSWORD: Scanner123*
|
||||
COGNITO_ENV_OUTPUT_DIR: /generated
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
base_admin_web_postgres_data:
|
||||
base_admin_web_floci_data:
|
||||
Reference in New Issue
Block a user