Skip to content
@convox-examples

Convox Examples

Example applications to run on Convox
Convox Logo Convox Banner

Convox Examples

A comprehensive collection of example applications demonstrating how to deploy various languages, frameworks, and popular applications on Convox. Each example includes production-ready convox.yml configurations, optimized Dockerfiles, and best practices for deployment.

Why Convox Examples?

These examples demonstrate the simplicity of deploying applications on Convox, whether you're using Convox Cloud for a fully-managed experience or your own Convox Rack for complete infrastructure control. Each example is:

  • Production-Ready: Configured with health checks, scaling, and proper resource allocation
  • Well-Documented: Includes detailed READMEs with deployment instructions
  • Best Practices: Follows Docker and Convox best practices for optimal performance
  • Framework-Specific: Tailored configurations for each language and framework
  • Quick to Deploy: Get running in minutes with simple commands

Quick Start

Deploy to Convox Cloud

# Clone an example
$ git clone https://github.com/convox-examples/nodejs.git
$ cd nodejs

# Deploy to Convox Cloud
$ convox cloud apps create myapp -i machine-name
$ convox cloud deploy -a myapp -i machine-name

Deploy to Convox Rack

# Clone an example
$ git clone https://github.com/convox-examples/rails.git
$ cd rails

# Deploy to your Rack
$ convox apps create myapp
$ convox deploy -a myapp

📚 Available Examples

Languages & Runtimes

Example Description Key Features
Node.js Express.js application Multi-stage builds, Health checks, Auto-scaling
PHP PHP application Apache/Nginx, Composer, Laravel/Symfony ready
Deno Deno runtime TypeScript support, Secure by default
.NET Core C# applications ASP.NET Core, Entity Framework, Multi-stage builds

Frameworks

Backend Frameworks

Framework Description Features
Django Python web framework PostgreSQL integration, Static files, Migrations
Rails Ruby on Rails PostgreSQL, Redis, Sidekiq, Asset pipeline

Frontend Frameworks

Framework Description Features
Next.js React framework SSR, SSG, API routes, Optimized builds
Svelte Svelte/SvelteKit Adapter-node, Static builds, Minimal runtime
Gatsby Static site generator GraphQL, Progressive images, Plugin ecosystem
Gatsby + Contentful Gatsby with CMS Contentful integration, Dynamic content, Webhooks

Web Servers

Server Use Case Configuration
Apache httpd Web server .htaccess, mod_rewrite, SSL configuration

AI & Machine Learning

Application Description Features
LLM GPU API GPU-accelerated LLM API CUDA support, Model serving, Auto-scaling
Llama2 Chatbot Llama2-powered chatbot Conversational AI, GPU optimization, WebSocket support

Popular Applications

Application Category Features
n8n Workflow Automation PostgreSQL backend, Webhook support, 400+ integrations, User authentication

🚀 Example Structure

Each example repository follows a consistent structure:

example-app/
├── README.md           # Deployment instructions & documentation
├── convox.yml          # Convox application manifest
├── Dockerfile          # Optimized container configuration
├── docker-compose.yml  # Local development setup (optional)
├── .env.example        # Environment variables template
├── src/                # Application source code
└── test/               # Test files

Standard convox.yml Pattern

environment:
  - NODE_ENV=production
  
resources:
  database:
    type: postgres
    options:
      storage: 10
      
services:
  web:
    build: .
    port: 3000
    health: /health
    scale:
      count: 1-10
      targets:
        cpu: 70
        memory: 90
    resources:
      - database
      
  worker:
    build: .
    command: npm run worker
    scale:
      count: 1-5
    resources:
      - database

📖 Documentation & Resources

Getting Started

Learn More

Video Tutorials

🤝 Contributing

We welcome contributions! To add or improve an example:

  1. Fork the repository you want to contribute to
  2. Create a feature branch (git checkout -b add-new-example)
  3. Make your changes following the existing patterns
  4. Test your deployment on both Convox Cloud and Rack
  5. Submit a Pull Request with a clear description

Guidelines for New Examples

  • Include a comprehensive README with deployment instructions
  • Provide both development and production configurations
  • Follow Docker best practices (multi-stage builds, small images)
  • Include health checks and proper scaling configuration
  • Add environment variable documentation
  • Test on multiple cloud providers when possible

Requesting New Examples

Can't find what you're looking for? Open an issue to request a new example. Please include:

  • The technology/framework you'd like to see
  • Your use case and requirements
  • Any specific configuration challenges

🌟 Featured Examples

Example: AI-Powered Application

Deploy a GPU-accelerated AI application:

# Clone the LLM API example
$ git clone https://github.com/convox-examples/llm-gpu-api.git
$ cd llm-gpu-api

# Review the GPU configuration
$ cat convox.yml

# Deploy with GPU support
$ convox deploy -a my-llm-api

This example demonstrates:

  • GPU resource allocation
  • Model serving at scale
  • Optimized inference
  • Auto-scaling based on load

Example: Modern Web Application with Rails

Deploy a full-featured Rails application:

# Clone the Rails example
$ git clone https://github.com/convox-examples/rails.git
$ cd rails

# Deploy the complete stack
$ convox deploy -a my-rails-app

Features:

  • Rails web application
  • PostgreSQL database
  • Redis for caching/ActionCable
  • Sidekiq background jobs
  • Asset pipeline optimization

Example: Workflow Automation with n8n

Deploy your own workflow automation platform:

# Clone the n8n example
$ git clone https://github.com/convox-examples/n8n.git
$ cd n8n

# Deploy n8n
$ convox deploy -a my-n8n

Includes:

  • PostgreSQL for persistent storage
  • Webhook support with SSL
  • User authentication
  • 400+ service integrations

💬 Community & Support

Get Help

Stay Updated

Support

📄 License

All examples are provided under the Apache 2.0 License.


Deploy with confidence using Convox
The Platform-as-a-Service that puts you in control

Get Started FreeDocumentationMain Repository

Popular repositories Loading

  1. rails rails Public

    Convox Example: Ruby on Rails

    Ruby 5 11

  2. datadog datadog Public

    Datadog Agent

    5 11

  3. n8n n8n Public

    Self-hosted n8n is a free and source-available workflow automation tool similar to Zapier.

    Shell 4 6

  4. django django Public

    Python 2 5

  5. httpd httpd Public

    Convox Example: httpd

    HTML 3

  6. nodejs nodejs Public

    Express

    JavaScript 21

Repositories

Showing 10 of 24 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…