Examples
Real-world examples of Gokku deployments for different use cases.
Quick Navigation
- Go Application - Deploy a Go REST API
- Python Application - Deploy a Python Flask app
- Rails Application - Deploy Ruby on Rails
- React Application - Deploy React with Node.js API
- Docker Application - Use Docker for deployment
- Multi-App Project - Deploy multiple apps from one repo
Example Projects
Go REST API
Simple Go API with Docker deployment:
yaml
apps:
api:
path: ./cmd/api
binary_name: apiPython Flask App
Python web app with Docker:
yaml
apps:
flask-app:
lang: python
path: ./app
entrypoint: app.pyDocker Deployment
Using custom Dockerfile:
yaml
apps:
service:
lang: python
path: ./services/ml
dockerfile: ./services/ml/DockerfileRuby on Rails
Full-stack Rails app with Docker deployment:
yaml
apps:
rails-app:
lang: ruby
path: .React with Node.js API
React frontend with Express API backend:
yaml
apps:
react-app:
lang: nodejs
path: .Monorepo with Multiple Apps
Deploy multiple services from one repository:
yaml
apps:
api:
path: ./cmd/api
worker:
path: ./cmd/worker
ml-service:
lang: python
path: ./services/mlBy Use Case
Microservices
Deploy multiple independent services:
With Database
Connect to PostgreSQL/MySQL:
With Cache
Use Redis for caching:
Background Jobs
Deploy workers and cron jobs:
Machine Learning
Deploy ML services with dependencies:
Real-time
WebSocket and real-time apps:
By Technology
Languages
- Go: Go Application
- Python: Python Application
- Ruby: Rails Application
- Node.js: React Application
Frameworks
- Gin/Echo: Go Application
- Flask/FastAPI: Python Application
- Rails: Rails Application
- React + Express: React Application
Deployment
- Docker: All applications use Docker
- Zero-Downtime: Blue-Green Deployment
Community Examples
Share your examples! Submit a PR:
github.com/thadeu/gokku/tree/main/examples