Introduces scalable Docker Compose deployment

Establishes a multi-service Docker Compose setup for the application, including a Traefik reverse proxy, a MySQL database, and a scalable API service.

Adds a comprehensive MySQL database schema for bug reports, file storage, rate limiting, user management, and sessions.

Improves application startup reliability by implementing a "wait-for-MySQL" script, ensuring the API service initializes only after the database is available. This script is integrated into the Dockerfile and package.json.

Enhances the API service with instance-specific logging, a more informative health endpoint, and an increased maximum request body size (50MB). Database migration failures are now gracefully handled.
This commit is contained in:
Flavio Fois
2026-02-25 20:57:19 +01:00
parent 211ce5f1f6
commit 19e199a578
8 changed files with 178 additions and 10 deletions

View File

@@ -9,4 +9,5 @@ COPY src/ ./src/
EXPOSE 3000
CMD ["bun", "run", "src/index.ts"]
# Use a small startup script that waits for MySQL to be ready
CMD ["bun", "run", "src/wait-for-mysql.ts"]