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

Deploy จาก Docker Registry

Pull และ deploy images ที่สร้างไว้ล่วงหน้าจาก Docker Hub, GHCR, GitLab, ECR, GCR หรือ private registries โดยไม่ต้อง build

Intermediate7 min readUpdated 2026-03-29

Registries ที่รองรับ

Server Compass รองรับ pulling images จากประเภทรายการ 6 ประเภท:

  • Docker Hub — images สาธารณะและส่วนตัวพร้อม access tokens
  • GitHub Container Registry (GHCR) — เชื่อมต่อบัญชี GitHub ของคุณสำหรับการเข้าถึง OAuth ที่ราบรื่น
  • GitLab Container Registry — access tokens หรือ deploy tokens
  • Amazon ECR — login tokens (หมดอายุใน 12 ชั่วโมง)
  • Google Container Registry (GCR) — การยืนยันตัวตนด้วยไฟล์ JSON key
  • Custom registries — registry ใดๆ ที่เป็นไปตาม OCI

Deploy image สาธารณะ

  1. เปิด Stack Wizard และเลือก Pull from Registry
  2. ใส่ image reference (เช่น nginx:latest หรือ ghcr.io/owner/app:v1.2)
  3. Server Compass ตรวจจับพอร์ตที่เปิดอยู่โดยอัตโนมัติสำหรับ images ยอดนิยม 30+ (Nginx, PostgreSQL, Redis, Grafana ฯลฯ)
  4. ตรวจสอบพอร์ตที่ตรวจจับได้และแก้ไขข้อขัดแย้งกับ containers ที่กำลังทำงานอยู่
  5. กำหนดค่า environment variables และ restart policy
  6. คลิก Deploy — มีการสร้างไฟล์ compose และ pull image โดยตรง

Deploy จาก private registry

  1. เพิ่มข้อมูล registry ในแผง Registry Selector
  2. ประเภทรายการแต่ละประเภทมีคำแนะนำการตั้งค่า (เช่น ขอบเขตที่ต้องการสำหรับ tokens GHCR)
  3. ทดสอบการเชื่อมต่อก่อนบันทึก
  4. เลือกข้อมูล registry เมื่อ deploy — Server Compass ยืนยันตัวตนผ่าน docker login โดยอัตโนมัติ
  5. สำหรับ GHCR คุณยังสามารถเชื่อมต่อบัญชี GitHub ของคุณสำหรับการเข้าถึงแบบ OAuth โดยไม่ต้องใช้ tokens ด้วยตนเอง

Redeploy แบบคลิกเดียว

แอปที่ deploy จาก registry รองรับ redeploy ทันที:

  1. เปิดแท็บ Deployments ของแอป
  2. คลิก Redeploy — Server Compass pull image digest ล่าสุดและ restart container
  3. ไม่ต้อง build ใหม่ — image ที่อัปเดตถูก pull และสลับเข้าที่
  4. image tags แสดงในประวัติ deployment ของคุณเพื่อการติดตามที่ง่าย

Screenshots

Deploy จาก Docker Registry - Screenshot 1

Video Tutorials

Related Features

Ready to try Server Compass?

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

Download Server Compass