RepoDocs - Dokploy Deployment Rehberi
RepoDocs - Dokploy Deployment Rehberi
Bu rehber RepoDocs'u Dokploy'a deploy etme adımlarını içerir.
Neden Dokploy?
- ✅ Public API - Domain ekleme/silme otomatik
- ✅ Otomatik SSL - Let's Encrypt ile Traefik
- ✅ Kolay Yönetim - Modern UI
- ✅ Docker Native - Container yönetimi
Gereksinimler
- Dokploy kurulu VPS (Contabo, Hetzner, vb.)
- PostgreSQL database
- Redis cache
- GitHub OAuth App
Adım 1: Dokploy'da Proje Oluştur
- Dokploy paneline gir:
https://your-vps-ip:3000 - Projects > Create Project > İsim:
repodocs - Create Application > Application
- Provider: GitHub
- Repository:
doctorcmptrmita2/RepoDocs - Branch:
main
Adım 2: Database Servisleri Ekle
PostgreSQL
- Proje içinde Create Service > PostgreSQL
- İsim:
postgres - Database:
repodocs - User:
repodocs - Password: (güçlü şifre)
Redis
- Create Service > Redis
- İsim:
redis - Password: (opsiyonel)
Adım 3: Environment Variables
Application > Environment sekmesine git ve ekle:
Adım 4: Dokploy API Key Oluştur
- Dokploy > Settings > Profile
- API/CLI Section > Generate Token
- Token'ı kopyala →
DOKPLOY_API_KEY
Adım 5: Application ID Bul
- Application sayfasına git
- URL'deki ID'yi kopyala:
https://dokploy:3000/dashboard/project/xxx/services/application/**APP_ID** - Bu ID →
DOKPLOY_APPLICATION_ID
Adım 6: Build & Deploy
- Application > Deployments > Deploy
- Build loglarını takip et
- Başarılı olunca Domains sekmesine git
Adım 7: Ana Domain Ekle
- Domains > Create Domain
- Host:
repodocs.yourdomain.com - Port:
3000 - HTTPS: ✅
- Certificate:
Let's Encrypt
Adım 8: DNS Ayarları
Domain sağlayıcında:
Wildcard subdomain için:
Adım 9: Database Migration
Dokploy > Application > Terminal veya SSH ile:
Adım 10: Test
https://repodocs.yourdomain.comaç- GitHub ile login ol
- Proje oluştur
- Custom domain ekle → Otomatik Dokploy'a eklenmeli
Custom Domain Akışı
Sorun Giderme
Build Hatası
Database Bağlantı Hatası
DATABASE_URLdoğru mu?- PostgreSQL servisi çalışıyor mu?
- Network aynı mı? (internal hostname kullan)
Domain Eklenmiyor
DOKPLOY_API_KEYgeçerli mi?DOKPLOY_APPLICATION_IDdoğru mu?- API erişimi var mı?
SSL Hatası
- DNS propagation bekle (5-10 dk)
- Traefik loglarını kontrol et