Skip to content

Conversation

rensortino
Copy link

This pull request introduces Docker-based deployment for ServStat, for better portability and ease of configuration. It containerizes the backend and frontend, adds a docker-compose.yml for orchestrating services, and updates the documentation to recommend Docker deployment. The backend container uses a CUDA-based image to allow for GPU monitoring and an Nginx reverse proxy is configured to route requests to the appropriate services.

Dockerization and Deployment

  • Added docker-compose.yml to define and orchestrate backend, frontend, and Nginx services, including GPU allocation for backend and custom networking.
  • Added Makefile with convenient targets for building, starting, stopping, and managing Docker services.
  • Added backend/Dockerfile and frontend/Dockerfile for containerizing both backend and frontend applications.
  • Added nginx.conf to configure Nginx as a reverse proxy, routing /stat/ API requests to backend and all other requests to frontend, with error handling and fallback messaging.

Documentation Updates

  • Updated README.md to recommend Docker deployment, provide step-by-step Docker instructions, and clarify backend/frontend roles.

Frontend Dependencies update

  • Updated frontend dependencies to latest Vite version, and added Vite Vue plugin configuration for compatibility with Vite 6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant