{"id":19517856,"url":"https://github.com/emrahcom/emrah-stretch","last_synced_at":"2026-05-15T00:33:19.632Z","repository":{"id":91398269,"uuid":"95658121","full_name":"emrahcom/emrah-stretch","owner":"emrahcom","description":"An installer to create the containerized systems on Debian Stretch host. It built on top of LXC (Linux containers)","archived":false,"fork":false,"pushed_at":"2021-08-10T12:44:35.000Z","size":400,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-08T12:48:55.175Z","etag":null,"topics":["container","debian","installer","livestream","lxc","stretch"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emrahcom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-28T10:38:42.000Z","updated_at":"2021-08-10T12:44:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"ff03cef1-a768-4161-a60a-fc9bb66bf67f","html_url":"https://github.com/emrahcom/emrah-stretch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emrahcom%2Femrah-stretch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emrahcom%2Femrah-stretch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emrahcom%2Femrah-stretch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emrahcom%2Femrah-stretch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emrahcom","download_url":"https://codeload.github.com/emrahcom/emrah-stretch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240766611,"owners_count":19854119,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["container","debian","installer","livestream","lxc","stretch"],"created_at":"2024-11-11T00:06:51.178Z","updated_at":"2026-05-15T00:33:19.600Z","avatar_url":"https://github.com/emrahcom.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"About\n=====\n\n`emrah-stretch` is an installer to create the containerized systems on Debian\nStretch host. It built on top of LXC (Linux containers).\n\nTable of contents\n=================\n\n- [About](#about)\n- [Usage](#usage)\n- [Example](#example)\n- [Available templates](#available-templates)\n    - [es-base](#es-base)\n        - [To install es-base](#to-install-es-base)\n    - [es-livestream](#es-livestream)\n        - [Main components of es-livestream](#main-components-of-es-livestream)\n        - [To install es-livestream](#to-install-es-livestream)\n        - [After install es-livestream](#after-install-es-livestream)\n        - [Related links to es-livestream](#related-links-to-es-livestream)\n    - [es-gogs](#es-gogs)\n        - [Main components of es-gogs](#main-components-of-es-gogs)\n        - [To install es-gogs](#to-install-es-gogs)\n        - [After install es-gogs](#after-install-es-gogs)\n        - [SSL certificate for es-gogs](#ssl-certificate-for-es-gogs)\n        - [Related links to es-gogs](#related-links-to-es-gogs)\n    - [es-nextcloud](#es-nextcloud)\n        - [Main components of es-nextcloud](#main-components-of-es-nextcloud)\n        - [To install es-nextcloud](#to-install-es-nextcloud)\n        - [After install es-nextcloud](#after-install-es-nextcloud)\n        - [SSL certificate for es-nextcloud](#ssl-certificate-for-es-nextcloud)\n        - [Related links to es-nextcloud](#related-links-to-es-nextcloud)\n    - [es-ring-node](#es-ring-node)\n        - [To install es-ring-node](#to-install-es-ring-node)\n        - [Related links to es-ring-node](#related-links-to-es-ring-node)\n- [Requirements](#requirements)\n\n---\n\nUsage\n=====\n\nDownload the installer, run it with a template name as an argument and drink a\ncoffee. That's it.\n\n```bash\nwget https://raw.githubusercontent.com/emrahcom/emrah-stretch/master/installer/es\nwget https://raw.githubusercontent.com/emrahcom/emrah-stretch/master/installer/\u003cTEMPLATE_NAME\u003e.conf\nbash es \u003cTEMPLATE_NAME\u003e\n```\n\nExample\n=======\n\nTo install a streaming media system, login a Debian Stretch host as `root` and\n\n```bash\nwget https://raw.githubusercontent.com/emrahcom/emrah-stretch/master/installer/es\nwget https://raw.githubusercontent.com/emrahcom/emrah-stretch/master/installer/es-livestream.conf\nbash es es-livestream\n```\n\nAvailable templates\n===================\n\nes-base\n-------\n\nInstall only a containerized Debian Stretch.\n\n### To install es-base\n\n```bash\nwget https://raw.githubusercontent.com/emrahcom/emrah-stretch/master/installer/es\nwget https://raw.githubusercontent.com/emrahcom/emrah-stretch/master/installer/es-base.conf\nbash es es-base\n```\n\n---\n\nes-livestream\n-------------\n\nInstall a ready-to-use live streaming media system.\n\n### Main components of es-livestream\n\n-  Nginx server with nginx-ts-module and nginx-rtmp-module as a stream origin.\n   It gets the (MPEG-TS or RTMP) stream and convert it to HLS and DASH.\n\n-  Nginx server with standart modules as a stream edge.\n   It publish the HLS and DASH stream.\n\n-  Web based HLS video player.\n\n-  Web based DASH video player.\n\n### To install es-livestream\n\n```bash\nwget https://raw.githubusercontent.com/emrahcom/emrah-stretch/master/installer/es\nwget https://raw.githubusercontent.com/emrahcom/emrah-stretch/master/installer/es-livestream.conf\nbash es es-livestream\n```\n\n### After install es-livestream\n\n-  `http://\u003cIP_ADDRESS\u003e:8000/livestream/publish/\u003cCHANNEL_NAME\u003e` to push\n    an MPEG-TS stream.\n\n-  `rtmp://\u003cIP_ADDRESS\u003e/livestream/\u003cCHANNEL_NAME\u003e` to push\n    an RTMP stream.\n\n-  `http://\u003cIP_ADDRESS\u003e/livestream/hls/\u003cCHANNEL_NAME\u003e/index.m3u8` to pull\n   the HLS stream.\n\n-  `http://\u003cIP_ADDRESS\u003e/livestream/dash/\u003cCHANNEL_NAME\u003e/index.mpd` to pull\n   the DASH stream.\n\n-  `http://\u003cIP_ADDRESS\u003e/livestream/hlsplayer/\u003cCHANNEL_NAME\u003e` for\n   the HLS video player page.\n\n-  `http://\u003cIP_ADDRESS\u003e/livestream/dashplayer/\u003cCHANNEL_NAME\u003e` for\n   the DASH video player page.\n\n-  `http://\u003cIP_ADDRESS\u003e:8000/livestream/status` for the RTMP status page.\n\n-  `http://\u003cIP_ADDRESS\u003e:8000/livestream/cloner` for the stream cloner page.\n   Thanks to [nejdetckenobi](https://github.com/nejdetckenobi)\n\n### Related links to es-livestream\n\n-  [nginx-ts-module](https://github.com/arut/nginx-ts-module)\n\n-  [nginx-rtmp-module](https://github.com/arut/nginx-rtmp-module)\n\n-  [video.js](https://github.com/videojs/video.js)\n\n-  [videojs-contrib-hls](https://github.com/videojs/videojs-contrib-hls)\n\n-  [dash.js](https://github.com/Dash-Industry-Forum/dash.js/)\n\n---\n\nes-gogs\n--------\n\nInstall a ready-to-use self-hosted Git service. Only AMD64 architecture is\nsupported for this template.\n\n### Main components of es-gogs\n\n- Gogs\n- Git\n- Nginx\n- MariaDB\n\n### To install es-gogs\n\n```bash\nwget https://raw.githubusercontent.com/emrahcom/emrah-stretch/master/installer/es\nwget https://raw.githubusercontent.com/emrahcom/emrah-stretch/master/installer/es-gogs.conf\nbash es es-gogs\n```\n\n### After install es-gogs\n\n-  Access `https://\u003cIP_ADDRESS\u003e/` to finish the installation process. Easy!\n\n-  **Password**: There is no password for the database. So, leave it blank!\n   Don't worry, only the local user can connect to the database server.\n\n-  **Domain**: Write your host FQDN or IP address. Examples:   \n   *git.mydomain.com*   \n   *123.2.3.4*\n\n-  **SSH Port**: Leave the default value which is the SSH port of the\n   container.\n\n-  **HTTP Port**: Leave the default value which is the internal port of Gogs\n   service.\n\n-  **Application URL**: Write your URL. HTTP and HTTPS are OK. Examples:   \n   *https://git.mydomain.com/*    \n   *https://123.2.3.4/*\n\n-  The first registered user will be the administrator.\n\n\n### SSL certificate for es-gogs\n\nTo use Let's Encrypt certificate, connect to es-gogs container as root and\n\n```bash\nFQDN=\"your.host.fqdn\"\n\ncertbot certonly --webroot -w /var/www/html -d $FQDN\n\nchmod 750 /etc/letsencrypt/{archive,live}\nchown root:ssl-cert /etc/letsencrypt/{archive,live}\nmv /etc/ssl/certs/{ssl-es.pem,ssl-es.pem.bck}\nmv /etc/ssl/private/{ssl-es.key,ssl-es.key.bck}\nln -s /etc/letsencrypt/live/$FQDN/fullchain.pem \\\n    /etc/ssl/certs/ssl-es.pem\nln -s /etc/letsencrypt/live/$FQDN/privkey.pem \\\n    /etc/ssl/private/ssl-es.key\n\nsystemctl restart nginx.service\n```\n\n\n### Related links to es-gogs\n\n- [Gogs](https://gogs.io/)\n- [Git](https://git-scm.com/)\n- [Nginx](http://nginx.org/)\n- [MariaDB](https://mariadb.org/)\n- [Let's Encrypt](https://letsencrypt.org/)\n- [Certbot](https://certbot.eff.org/)\n\n---\n\nes-nextcloud\n------------\n\nInstall a ready-to-use self-hosted Nextcloud service.\n\n### Main components of es-nextcloud\n\n- Nextcloud\n- Apache\n- MariaDB\n\n### To install es-nextcloud\n\n```bash\nwget https://raw.githubusercontent.com/emrahcom/emrah-stretch/master/installer/es\nwget https://raw.githubusercontent.com/emrahcom/emrah-stretch/master/installer/es-nextcloud.conf\nbash es es-nextcloud\n```\n\n### After install es-nextcloud\n\n-  `https://\u003cIP_ADDRESS\u003e/` to access Nextcloud web panel.\n\n### SSL certificate for es-nextcloud\n\nTo use Let's Encrypt certificate, connect to es-nextcloud container as root and\n\n```bash\nFQDN=\"your.host.fqdn\"\n\ncertbot certonly --webroot -w /var/www/nextcloud -d $FQDN\n\nchmod 750 /etc/letsencrypt/{archive,live}\nchown root:ssl-cert /etc/letsencrypt/{archive,live}\nmv /etc/ssl/certs/{ssl-es.pem,ssl-es.pem.bck}\nmv /etc/ssl/private/{ssl-es.key,ssl-es.key.bck}\nln -s /etc/letsencrypt/live/$FQDN/fullchain.pem \\\n    /etc/ssl/certs/ssl-es.pem\nln -s /etc/letsencrypt/live/$FQDN/privkey.pem \\\n    /etc/ssl/private/ssl-es.key\n\nsystemctl restart apache2.service\n```\n\n\n### Related links to es-nextcloud\n\n- [Nextcloud](https://nextcloud.com/)\n- [Apache](https://apache.org/)\n- [MariaDB](https://mariadb.org/)\n- [Let's Encrypt](https://letsencrypt.org/)\n- [Certbot](https://certbot.eff.org/)\n\n---\n\nes-ring-node\n-------------\nThis template is **obsolete**.\n\nInstall a ready-to-use public Ring node.\n\n### To install es-ring-node\n\n```bash\nwget https://raw.githubusercontent.com/emrahcom/emrah-stretch/master/installer/es\nwget https://raw.githubusercontent.com/emrahcom/emrah-stretch/master/installer/es-ring-node.conf\nbash es es-ring-node\n```\n\n### Related links to es-ring-node\n\n-  [OpenDHT](https://github.com/savoirfairelinux/opendht)\n\n-  [Ring](https://ring.cx/)\n\n---\n\nRequirements\n============\n\n`emrah-stretch` requires a Debian Stretch host with a minimal install and\nInternet access during the installation. It's not a good idea to use your\ndesktop machine or an already in-use production server as a host machine.\nPlease, use one of the followings as a host:\n\n-  a cloud host from a hosting/cloud service\n   ([Digital Ocean](https://www.digitalocean.com/?refcode=92b0165840d8)'s\n   droplet, [Amazon](https://console.aws.amazon.com) EC2 instance etc)\n\n-  a virtual machine (VMware, VirtualBox etc)\n\n-  a Debian Stretch container\n\n-  a physical machine with a fresh installed\n   [Debian Stretch](https://www.debian.org/releases/stretch/debian-installer/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femrahcom%2Femrah-stretch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femrahcom%2Femrah-stretch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femrahcom%2Femrah-stretch/lists"}