WorkTracker/docker-compose.override.yml
MaddoScientisto 7029e374cc
Some checks failed
Publish Container / publish (push) Has been cancelled
Refactor authentication system to use MongoDB
- Removed Entity Framework Core identity schema and related migrations.
- Introduced MongoDB-based authentication service with user seeding functionality.
- Updated Program.cs to configure authentication and authorization using cookies.
- Created new Login.razor component for user login interface.
- Added RedirectToLogin component for handling unauthorized access.
- Updated Dockerfile and docker-compose files for development and production environments.
- Removed SQLite connection strings and related configurations.
- Added MongoDB connection settings in appsettings.json and Docker configurations.
- Implemented IMongoAuthService interface and MongoAuthService class for user management.
- Created MongoAuthUser model for MongoDB user representation.
2026-03-16 21:54:44 +01:00

23 lines
672 B
YAML

services:
worktracker:
image: worktracker-dev:latest
build:
context: .
dockerfile: Dockerfile
target: dev
container_name: worktracker-dev
environment:
ASPNETCORE_ENVIRONMENT: Development
ASPNETCORE_URLS: http://+:8080
MongoDb__ConnectionString: mongodb://mongo:27017
UseHttpsRedirection: "false"
DOTNET_USE_POLLING_FILE_WATCHER: "1"
volumes:
- ./:/workspace:cached
working_dir: /workspace
entrypoint: ["dotnet"]
command: ["watch", "run", "--no-launch-profile", "--project", "WorkTracker.csproj", "--urls", "http://+:8080"]
ports:
- "8002:8080"
depends_on:
- mongo