Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs: add Indonesian Docker deployment guide (#188)

Jimmi Mohtarcf6ac1d2d6ba
diff --git a/docs/DOCKER_ID.md b/docs/DOCKER_ID.md
new file mode 100644
index 000000000..84e853f57
--- /dev/null
+++ b/docs/DOCKER_ID.md
@@ -0,0 +1,119 @@
+# Panduan Deployment Docker OpenWA
+
+Panduan ini menjelaskan cara melakukan deployment **OpenWA** (WhatsApp API Gateway) menggunakan Docker dan Docker Compose.
+
+---
+
+## πŸš€ Persyaratan Sistem
+Sebelum memulai, pastikan server Anda sudah terinstal:
+* **Docker** (versi 20.10+)
+* **Docker Compose** (versi 2.0+)
+
+---
+
+## πŸ“ Struktur Konfigurasi
+
+OpenWA menggunakan fitur **Profiles** di Docker Compose untuk mempermudah orkestrasi layanan tambahan (database, cache, dll) sesuai kebutuhan infrastruktur Anda.
+
+### Layanan Utama (Core)
+* **`openwa-api`**: Server backend utama REST API OpenWA.
+* **`dashboard`**: Antarmuka web (React UI) untuk mengelola sesi dan webhook.
+
+### Layanan Tambahan (Optional Profiles)
+* **`postgres`**: Database PostgreSQL (bawaan docker).
+* **`redis`**: Caching layer untuk performa tinggi.
+* **`minio`**: Penyimpanan berkas media yang kompatibel dengan Amazon S3.
+* **`with-proxy`**: Reverse proxy Traefik otomatis.
+
+---
+
+## ⚑ Langkah Cepat (Development)
+
+Untuk kebutuhan uji coba lokal dengan database bawaan SQLite dan penyimpanan lokal:
+
+```bash
+# 1. Clone repositori hasil fork Anda
+git clone [email protected]:jimmimohtar/OpenWA.git
+cd OpenWA
+
+# 2. Jalankan docker compose khusus development
+docker compose -f docker-compose.dev.yml up -d
+```
+
+Aplikasi dapat diakses di:
+* **Dashboard UI**: `http://localhost:2886`
+* **Swagger Docs**: `http://localhost:2785/api/docs`
+
+---
+
+## 🏭 Deployment Produksi
+
+### 1. File Environment (`.env`)
+Salin file `.env.example` menjadi `.env` lalu sesuaikan konfigurasi kunci keamanan Anda:
+
+```bash
+cp .env.example .env
+```
+
+Pastikan untuk mengubah nilai rahasia berikut di dalam `.env`:
+* `API_MASTER_KEY`: Kunci keamanan untuk autentikasi API.
+* `DATABASE_PASSWORD`: Sandi untuk database PostgreSQL (jika dipakai).
+
+### 2. Memilih Skenario Deployment (Docker Profiles)
+
+#### Skenario A: Produksi Minimalis (SQLite + Dashboard)
+Cocok untuk VPS resource kecil (RAM 1GB - 2GB):
+```bash
+docker compose --profile with-dashboard up -d
+```
+
+#### Skenario B: Produksi Menengah (PostgreSQL + Dashboard)
+Cocok untuk keandalan data lebih tinggi:
+```bash
+docker compose --profile postgres --profile with-dashboard up -d
+```
+
+#### Skenario C: Full Stack (PostgreSQL + Redis + S3 MinIO + Dashboard + Traefik)
+Cocok untuk skala enterprise dengan multi-sesi aktif:
+```bash
+docker compose --profile full up -d
+```
+
+---
+
+## βš™οΈ Variabel Lingkungan Penting (Environment Variables)
+
+Berikut variabel penting yang bisa disesuaikan di `.env`:
+
+| Nama Variabel | Nilai Default | Deskripsi |
+|---|---|---|
+| `API_PORT` | `2785` | Port yang digunakan untuk akses REST API. |
+| `DASHBOARD_PORT` | `2886` | Port untuk mengakses Dashboard UI. |
+| `DATABASE_TYPE` | `sqlite` | Jenis database yang digunakan (`sqlite` atau `postgres`). |
+| `DATABASE_NAME` | `/app/data/openwa.sqlite` | Lokasi database SQLite atau nama database PostgreSQL. |
+| `ENGINE_TYPE` | `whatsapp-web.js` | Driver/mesin engine WhatsApp yang digunakan. |
+| `PUPPETEER_HEADLESS` | `true` | Menjalankan browser WhatsApp secara tersembunyi. |
+
+---
+
+## πŸ” Pemeriksaan Status & Diagnostik
+
+Memeriksa apakah kontainer berjalan lancar:
+```bash
+docker compose ps
+```
+
+Melihat log aktivitas sistem OpenWA:
+```bash
+docker compose logs -f openwa-api
+```
+
+Melakukan pembersihan/berhenti:
+```bash
+docker compose down
+```
+
+---
+
+## 🀝 Kontribusi
+Jika Anda menemukan kendala saat setup menggunakan Docker, silakan ajukan Issue atau Pull Request di repositori ini.
diff --git a/docs/README.md b/docs/README.md
index 031023d02..25fb5ce71 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -42,6 +42,7 @@
| 08 | [Development Guidelines](./08-development-guidelines.md) | Coding standards and workflow |
| 09 | [Testing Strategy](./09-testing-strategy.md) | Test types and tooling |
| 10 | [DevOps & Infrastructure](./10-devops-infrastructure.md) | Docker, deployment, and environment configuration |
+| 10-ID| [Panduan Docker (ID)](./DOCKER_ID.md) | Panduan deployment Docker dalam Bahasa Indonesia |
| 11 | [Operational Runbooks](./11-operational-runbooks.md) | Incident, maintenance, and backup runbooks |
| 12 | [Troubleshooting FAQ](./12-troubleshooting-faq.md) | Common issues and fixes |
| 13 | [Horizontal Scaling](./13-horizontal-scaling.md) | Multi-node deployment guidance |