กลับไปยังเอกสาร
การปรับใช้

Deploy ด้วย Local Build

Build Docker images บนเครื่องของคุณและ deploy โดยตรงไปยัง server ของคุณโดยไม่ต้องใช้ cloud CI/CD

Intermediate5 min readUpdated 2026-03-29

Local build ทำงานอย่างไร

Local build ช่วยให้คุณใช้ resources ของเครื่องสำหรับการ build Docker:

  1. Server Compass build Docker image บนเครื่อง local ของคุณ
  2. Image ที่ build แล้วถูก push โดยตรงไปยัง server ของคุณผ่าน SSH
  3. Container ถูกเริ่มต้นบน server

ไม่ต้องใช้บริการ cloud CI/CD, container registries หรือบัญชี third-party

เริ่มต้น local build deploy

  1. เปิด Stack Wizard
  2. เลือก Local Build เป็นตำแหน่ง build
  3. เลือกไดเรกทอรีโปรเจกต์หรือ Dockerfile ของคุณ
  4. Server Compass ตรวจจับ framework และสร้าง Dockerfile หากจำเป็น
  5. กำหนดค่า environment variables และพอร์ต
  6. คลิก Deploy — image build ในท้องถิ่นและถูกโอนไปยัง server ของคุณ

อัปโหลด code เพื่อ deploy

สำหรับโปรเจกต์ที่ไม่มี Dockerfile:

  1. เลือก Upload Code ใน Stack Wizard
  2. เลือกโฟลเดอร์จากคอมพิวเตอร์ของคุณ
  3. Server Compass ตรวจจับ framework โดยอัตโนมัติ (Next.js, Django, Laravel ฯลฯ)
  4. Dockerfile ถูกสร้างโดยอัตโนมัติ
  5. ความคืบหน้าการอัปโหลดถูกติดตามแบบ real-time
  6. แอปถูก build และ deploy บน server

Screenshots

Deploy ด้วย Local Build - Screenshot 1
Deploy ด้วย Local Build - Screenshot 2

Video Tutorials

Related Features

Ready to try Server Compass?

Download the app and deploy your first application in under 5 minutes.

Download Server Compass