Skip to content
This repository was archived by the owner on Feb 15, 2026. It is now read-only.

Feat/docker#2

Merged
0ghost0-dev merged 11 commits intonextfrom
feat/docker
Jan 31, 2026
Merged

Feat/docker#2
0ghost0-dev merged 11 commits intonextfrom
feat/docker

Conversation

@0ghost0-dev
Copy link
Owner

This pull request introduces major improvements to the project's Dockerization, environment configuration, database migration handling, and developer workflow automation. It adds a complete Docker build and runtime setup, an automated migration runner for Drizzle ORM, a robust entrypoint script, and a sample GitHub Actions workflow for CI/CD. Additionally, it clarifies and expands the .env.example and updates dependencies for better compatibility and security.

Dockerization and Deployment Automation

  • Added a comprehensive Dockerfile with multi-stage build, runtime environment, and copy/setup of all required assets for production deployment.
  • Introduced docker-entrypoint.sh to handle permissions, ensure required files (like PJSe.json) are present, wait for Postgres readiness, and run as the correct user.
  • Created a .dockerignore file to optimize Docker builds by excluding unnecessary files and directories.

Database and Migrations

  • Implemented a runMigrations function in src/lib/server/postgresql/db.ts to automatically apply Drizzle SQL migrations at startup, and integrated it into the server initialization flow. [1] [2] [3]
  • Updated .env.example with detailed comments, secure defaults, and clarified required vs. optional settings for database, Redis, and server configuration.

CI/CD and Workflow Enhancements

  • Added a GitHub Actions workflow (.github/workflows/workflow.yml) to automate building and pushing Docker images to GHCR on relevant branch pushes.

Dependency Updates

  • Upgraded various dependencies in package.json (including Svelte, Drizzle, ORPC, Tailwind, and others) for improved stability, security, and feature support.

Other Notable Improvements

  • Modified src/lib/server/rpc/public/users.ts to automatically create the first user as an admin if no users exist.
  • Adjusted exchanges/PJSe.json to update trading session times for more realistic or extended trading hours. [1] [2]

These changes collectively make the project easier to deploy, maintain, and develop in modern environments.

References:

This comment was marked as resolved.

0ghost0-dev and others added 4 commits January 29, 2026 21:02
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Repository owner locked and limited conversation to collaborators Jan 29, 2026
@0ghost0-dev 0ghost0-dev deleted the feat/docker branch January 29, 2026 12:12
@0ghost0-dev 0ghost0-dev restored the feat/docker branch January 31, 2026 04:20
Repository owner deleted a comment from Copilot AI Jan 31, 2026
Repository owner deleted a comment from Copilot AI Jan 31, 2026
Repository owner deleted a comment from Copilot AI Jan 31, 2026
Repository owner deleted a comment from Copilot AI Jan 31, 2026
@0ghost0-dev 0ghost0-dev reopened this Jan 31, 2026
@0ghost0-dev 0ghost0-dev merged commit 718329e into next Jan 31, 2026
2 checks passed
@0ghost0-dev 0ghost0-dev deleted the feat/docker branch January 31, 2026 04:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants