No description
  • HTML 43.1%
  • C# 39.8%
  • CSS 13%
  • TypeScript 2.3%
  • JavaScript 1.4%
  • Other 0.4%
Find a file
MaddoScientisto 374163bf11
Some checks failed
Publish Container / publish (push) Failing after 2m23s
Corrected path for project publish
2026-03-16 22:04:13 +01:00
.forgejo/workflows Corrected path for project publish 2026-03-16 22:04:13 +01:00
Components Refactor authentication system to use MongoDB 2026-03-16 21:54:44 +01:00
Configuration Scaffolded project 2026-02-18 17:11:13 +01:00
Domain Scaffolded project 2026-02-18 17:11:13 +01:00
Properties Refactor authentication system to use MongoDB 2026-03-16 21:54:44 +01:00
Services Refactor authentication system to use MongoDB 2026-03-16 21:54:44 +01:00
wwwroot Scaffolded project 2026-02-18 17:11:13 +01:00
.dockerignore Implement Docker support with Dockerfile, docker-compose, and nginx configuration; add HTTPS redirection option and update appsettings 2026-03-16 19:41:14 +01:00
.gitignore Refactor authentication system to use MongoDB 2026-03-16 21:54:44 +01:00
appsettings.Development.json Scaffolded project 2026-02-18 17:11:13 +01:00
appsettings.json Refactor authentication system to use MongoDB 2026-03-16 21:54:44 +01:00
docker-compose.override.yml Refactor authentication system to use MongoDB 2026-03-16 21:54:44 +01:00
docker-compose.yml Refactor authentication system to use MongoDB 2026-03-16 21:54:44 +01:00
Dockerfile Refactor authentication system to use MongoDB 2026-03-16 21:54:44 +01:00
nginx.conf Implement Docker support with Dockerfile, docker-compose, and nginx configuration; add HTTPS redirection option and update appsettings 2026-03-16 19:41:14 +01:00
plan.md Scaffolded project 2026-02-18 17:11:13 +01:00
Program.cs Refactor authentication system to use MongoDB 2026-03-16 21:54:44 +01:00
README.Docker.md Refactor authentication system to use MongoDB 2026-03-16 21:54:44 +01:00
WorkTracker.csproj Refactor authentication system to use MongoDB 2026-03-16 21:54:44 +01:00
WorkTracker.sln Scaffolded project 2026-02-18 17:11:13 +01:00

Running and debugging with Docker (includes MongoDB)

Quick run (Docker Engine required):

  1. Build and start services:

    docker compose up --build

  2. App will be available on host port 8002 -> container 8080 (http://localhost:8002).

Development in VS Code (F5):

  • The repository uses docker-compose.yml plus docker-compose.override.yml as the single development stack.
  • The override file switches the app container to the SDK-based dev image, mounts the workspace into /workspace, installs vsdbg, and runs dotnet watch.
  • Press F5 in VS Code with the Docker: Attach .NET in Compose - F5 configuration selected.
  • VS Code starts Docker Compose, waits for http://localhost:8002, opens the browser, and attaches the debugger to the worktracker-dev container.

Manual development start:

  • docker compose up --build

Manual shutdown:

  • docker compose down

MongoDB:

  • The compose stack includes a mongo service and a named volume mongo_data for persistence.
  • The app uses MongoDb__ConnectionString: mongodb://mongo:27017 inside the compose network.

Notes:

  • The base compose file remains production-oriented; the override file is the development/debug layer that VS Code uses automatically.
  • The first container build takes longer because the dev image installs the .NET debugger.
  • The Dockerfile pins the .NET 10 images to the *-noble tags because the generic 10.0 SDK tag does not provide a usable SDK in this environment.