Video coming soon…
👨💻 Setup Opengist — Self-Hosted GitHub Gist Alternative
Deploy Opengist on Ubuntu with Docker — a lightweight, Git-backed pastebin and snippet server where every gist is a real Git repository you can clone and push to.
⚠️ This script is provided for demo and testing purposes only. Not intended for production use.
📦 Resources & Setup Scripts
Grab the automated bash script from GitHub to follow along with the video.
Quick Install:
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/dev/opengist/opengist-ubuntu.sh
chmod +x opengist-ubuntu.sh
sudo bash opengist-ubuntu.sh
Tutorial Steps
1 Download the Script
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/dev/opengist/opengist-ubuntu.sh
2 Make it Executable
chmod +x opengist-ubuntu.sh
3 Run the Installer
The script installs Docker if needed, pulls the ghcr.io/thomiceli/opengist image, and starts it on port 6157 with Git SSH on port 2224 and a persistent ./data volume.
sudo bash opengist-ubuntu.sh
4 Create the Admin Account
Open your browser and navigate to Opengist, then register the first account — it becomes the administrator:
http://<your-server-ip>:6157
Ports Used
| Port | Purpose |
|---|---|
| 6157 | Web UI + Git over HTTP |
| 2224 | Git over SSH (host → container 2222) |