- Created auth and user types (T10) - Implemented API client with token handling (T11) - Built AuthContext with JWT decoding (T12) - Added ProtectedRoute component (T13) - Created LoginPage, RegisterPage, DashboardPage (T14-T16) - Updated App.tsx with routing and auth provider (T17) - Added Dockerfile, nginx.conf for frontend deployment (T18-T19) - Updated docker-compose.yml to include frontend service (T20) - Updated .gitignore to exclude frontend build artifacts (T21) - Removed unused App.css (T22) Refs #2
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
sqlserver:
|
|
image: mcr.microsoft.com/mssql/server:2022-latest
|
|
environment:
|
|
ACCEPT_EULA: "Y"
|
|
SA_PASSWORD: "YourStrong@Password123"
|
|
MSSQL_PID: "Developer"
|
|
ports:
|
|
- "1433:1433"
|
|
volumes:
|
|
- sqlserver_data:/var/opt/mssql
|
|
- ./Backend/Sql:/docker-entrypoint-initdb.d
|
|
healthcheck:
|
|
test: /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P "YourStrong@Password123" -Q "SELECT 1" || exit 1
|
|
interval: 10s
|
|
timeout: 3s
|
|
retries: 10
|
|
start_period: 30s
|
|
|
|
backend:
|
|
build:
|
|
context: .
|
|
dockerfile: Backend/Dockerfile
|
|
ports:
|
|
- "5000:8080"
|
|
environment:
|
|
- ASPNETCORE_ENVIRONMENT=Development
|
|
- ConnectionStrings__DefaultConnection=Server=sqlserver;Database=PruebaGentle;User Id=sa;Password=YourStrong@Password123;TrustServerCertificate=true;
|
|
- JwtSettings__Secret=ThisIsA32CharacterLongSecretKey!!
|
|
- JwtSettings__ExpirationHours=24
|
|
depends_on:
|
|
sqlserver:
|
|
condition: service_healthy
|
|
|
|
frontend:
|
|
build:
|
|
context: ./Frontend
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "8181:80"
|
|
depends_on:
|
|
- backend
|
|
|
|
volumes:
|
|
sqlserver_data:
|