Deploy Container ke VPS

Clone repository ke VPS atau tarik image dari Docker Hub, lalu jalankan docker compose up -d di server produksi.

👀 Contoh dulu

git clone https://github.com/user/app.git
cd app
docker compose up -d

Hasilnya: 1e8f3a92c1d4 app:latest "node server.js" Up 2 minutes 0.0.0.0:3000->3000/tcp app-web-1

💡 Pastikan file .env produksi sudah terisi lengkap di VPS.

📝 Sekarang giliranmu

Unduh salinan repository dari alamat https://github.com/user/app.git ke server VPS.

Preview