mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-04-26 08:25:59 +03:00
[PR #25] [MERGED] Containerize the full stack and fix repo references #25
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ServerKit#25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jhd3197/ServerKit/pull/25
Author: @jhd3197
Created: 3/1/2026
Status: ✅ Merged
Merged: 3/1/2026
Merged by: @jhd3197
Base:
main← Head:dev📝 Commits (7)
580a95cUse window.location.origin for install scriptsf0eb8b8Update GitHub repo references and install params96f148fchore: bump version to 1.2.89 [skip ci]54e6e02Bump Flask and Werkzeug versionsd588deechore: bump version to 1.2.90 [skip ci]8921b6fCompose: containerize backend & build frontendb055470chore: bump version to 1.2.91 [skip ci]📊 Changes
18 files changed (+111 additions, -130 deletions)
View changed files
📝
VERSION(+1 -1)📝
agent/Dockerfile(+1 -1)📝
agent/README.md(+2 -2)📝
agent/packaging/deb/build.sh(+2 -2)📝
agent/packaging/rpm/build.sh(+2 -2)➕
backend/.dockerignore(+9 -0)📝
backend/app/__init__.py(+9 -4)📝
backend/app/api/servers.py(+4 -2)📝
backend/requirements.txt(+2 -2)➖
docker-compose.dev.yml(+0 -69)📝
docker-compose.yml(+48 -18)📝
frontend/.dockerignore(+0 -6)📝
frontend/Dockerfile(+16 -4)📝
frontend/nginx.conf(+2 -2)📝
frontend/src/pages/Servers.jsx(+4 -4)📝
scripts/dev/dev.bat(+7 -9)📝
scripts/install.ps1(+1 -1)📝
scripts/install.sh(+1 -1)📄 Description
The backend was the one service that refused to live in a container — it ran on the host while everything else sat in Docker, connected by
host.docker.internaland good intentions. This PR gives it a proper home. Both services now run in a singledocker-compose.ymlwith a multi-stage frontend build, and all the old placeholder URLs and ghost repo references (serverkit/serverkit) have been exorcised.Technical changes
docker-compose.dev.ymlentirely.docker-compose.ymlnow runs both backend and frontend with health checks, log rotation, and named volumes. Backend exposed on:5849, frontend on:3847.backend/.dockerignore. Backend container uses SQLite at/app/instance/serverkit.dbwith volume mounts for data and config persistence.dist/to a multi-stage build (node:20-alpinebuilds,nginx:alpineserves). Updated.dockerignoreto stop excluding source files needed for the in-container build.frontend/nginx.confnow routes/apiand/socket.iotobackend:5000(Docker service name) instead ofhost.docker.internal:5000.backend/app/__init__.py: The/route and 404 handler now check whetherindex.htmlexists before attempting to serve it. When the backend runs standalone (no frontend assets), it returns a JSON response instead of crashing.serverkit/serverkittojhd3197/ServerKitinagent/Dockerfile,agent/README.md,agent/packaging/deb/build.sh,agent/packaging/rpm/build.sh,scripts/install.sh, andscripts/install.ps1.backend/app/api/servers.pynow replaces theGITHUB_REPOplaceholder in addition to the server URL when serving install scripts.frontend/src/pages/Servers.jsxuseswindow.location.originfor thecurl/irmdownload URL instead of the hardcodedhttps://your-serverplaceholder, and aligns parameter names (--serverinstead of--server-url,-Serverinstead of-ServerUrl).3.0.0->3.1.3, Werkzeug3.1.5->3.1.6.scripts/dev/dev.bat: Simplified to use the singledocker-compose.yml, updated port references to match new mapping.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.