{"id":17924619,"url":"https://github.com/megaconfidence/docker-deploy-webhook","last_synced_at":"2025-07-13T10:33:46.727Z","repository":{"id":135938551,"uuid":"306262044","full_name":"megaconfidence/docker-deploy-webhook","owner":"megaconfidence","description":"Auto deploys docker containers to a host machine","archived":false,"fork":false,"pushed_at":"2020-10-26T17:57:46.000Z","size":53,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T09:30:49.023Z","etag":null,"topics":["ci-cd","devops","docker"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/megaconfidence.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-10-22T07:49:26.000Z","updated_at":"2021-06-18T13:28:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"f9f797e1-254f-487f-b871-15f4cf449505","html_url":"https://github.com/megaconfidence/docker-deploy-webhook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/megaconfidence/docker-deploy-webhook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megaconfidence%2Fdocker-deploy-webhook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megaconfidence%2Fdocker-deploy-webhook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megaconfidence%2Fdocker-deploy-webhook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megaconfidence%2Fdocker-deploy-webhook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/megaconfidence","download_url":"https://codeload.github.com/megaconfidence/docker-deploy-webhook/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megaconfidence%2Fdocker-deploy-webhook/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265128643,"owners_count":23715624,"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":["ci-cd","devops","docker"],"created_at":"2024-10-28T20:49:42.096Z","updated_at":"2025-07-13T10:33:46.664Z","avatar_url":"https://github.com/megaconfidence.png","language":"JavaScript","readme":"# Docker Deploy Webhook\n\nThis is a simple webhook that auto deploys docker images on a self managed host such as VM or your local computer with docker installed\n\nIt is designed to work with a CI/CD flow either on travis, circle or git actions. After running your test etc, this webhook is to be called on the deploy stage of your pipeline and will auto deploy the docker image of the given repository on the host it is running on\n\n## Demo Video\nSee how this webhook works by playing the video below\n\n[![Click here to see the demo video on youtube](https://img.youtube.com/vi/yNPahpRavCc/0.jpg)](https://youtu.be/yNPahpRavCc)\n\n## Requirements\n\n1. Linux/Unix host i.e [Ubuntu](https://ubuntu.com/download/server)\n2. [Docker engine](https://docs.docker.com/engine/install/)\n3. [Nodejs](https://nodejs.org/en/download/package-manager/)\n4. [PM2](https://pm2.keymetrics.io/)\n\n## Environment Variables\n\nThis webhook requires the following environment variables\n\n```\n\nWEBHOOK_PORT=\u003cport-you-want-webhook-server-to-run\u003e\n\nDEPLOY_KEY=\u003csecurity-key-sent-to-webhook-to-authorize-deploys\u003e\n\nREPO_URL=\u003cgit-repo-containing-info-to-build-your-image\u003e\n\nIMAGE_NAME=\u003cname-you-want-to-call-your-image\u003e\n\nCONTAINER_NAME=\u003cname-you-want-to-call-your-container\u003e\n```\n\nYour can add other env variables that would be needed by the container at run-time to the `.env` file. These variables would be used to build the image, making them available when the container restarts (make sure you have your `ARG`s and `ENV`s properly setup in your `Dockerfile`)\n\n## Scripts\n\nThis webhook runs on a Nodejs server managed by PM2. The available scripts are:\n\n### Start\n\nStarts the server in a daemonized process\n\n```\nyarn start\n```\n\n### Stop\n\nKills the server process\n\n```\nyarn stop\n```\n\n### Dev\n\nStarts the server in development mode\n\n```\nyarn dev\n```\n### Startup\nIf you want the webhook to automatically start on boot\n```\nnpm i -g pm2\nyarn start\npm2 startup\n```\n\n## Contributing\n\nYour contributions are welcome. Please feel free to make suggestions and raise issues\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmegaconfidence%2Fdocker-deploy-webhook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmegaconfidence%2Fdocker-deploy-webhook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmegaconfidence%2Fdocker-deploy-webhook/lists"}