Skip to content

Add Dockerfile#24

Merged
shubham3121 merged 10 commits into
mainfrom
feat/dockerize
Jan 16, 2026
Merged

Add Dockerfile#24
shubham3121 merged 10 commits into
mainfrom
feat/dockerize

Conversation

@shubham3121

@shubham3121 shubham3121 commented Jan 13, 2026

Copy link
Copy Markdown
Member

This pull request introduces a comprehensive update to the SyftAI server's configuration and deployment process, focusing on standardizing environment variable naming, improving Docker and Compose support, and refining configuration validation. The changes enhance consistency, make containerization easier, and improve the developer experience for both local and production setups.

Containerization & Deployment Improvements:

  • Added a production-ready Dockerfile that builds a minimal image with pre-built frontend, Python dependencies via uv, and a health check endpoint.
  • Introduced a docker-compose.yml for orchestrating the SyftAI server, including persistent volumes, resource limits, environment variable configuration, and health checks.
  • Added a .dockerignore file to exclude unnecessary files and directories from Docker builds, reducing image size and build time.

Configuration Standardization & Validation:

  • Changed all environment variable references from SYFTAI_PORT to SYFT_PORT throughout the codebase and scripts for consistency. [1] [2] [3]
  • Updated the settings system to use the SYFT_ prefix for all environment variables and added a validator for the public_url field to ensure correct URL formatting. [1] [2] [3]

Developer Experience:

  • Added a detailed .env.example file to guide users in configuring their environment variables for local and Docker deployments.

…-compose.yml, and .env.example

- Introduced .dockerignore to exclude unnecessary files from Docker context.
- Created Dockerfile for building a production image of the SyftAI server.
- Added docker-compose.yml for service orchestration, including environment variables and health checks.
- Provided .env.example for environment configuration guidance.
@shubham3121 shubham3121 requested a review from itstauq January 13, 2026 06:13
@shubham3121 shubham3121 self-assigned this Jan 13, 2026
@shubham3121 shubham3121 merged commit 1c5f11a into main Jan 16, 2026
2 checks passed
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