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:
app-name: api
path: ./cmd/api
binary_name: api
Python Flask App
Python web app with Docker:
yaml
apps:
app-name: flask-app
lang: python
path: ./app
entrypoint: app.py
Docker Deployment
Using custom Dockerfile:
yaml
apps:
app-name: service
lang: python
path: ./services/ml
dockerfile: ./services/ml/Dockerfile
Ruby on Rails
Full-stack Rails app with Docker deployment:
yaml
apps:
app-name: rails-app
lang: ruby
path: .
React with Node.js API
React frontend with Express API backend:
yaml
apps:
app-name: react-app
lang: nodejs
path: .
Monorepo with Multiple Apps
Deploy multiple services from one repository:
yaml
apps:
app-name: api
path: ./cmd/api
app-name: worker
path: ./cmd/worker
app-name: ml-service
lang: python
path: ./services/ml
By 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