{"id":21289770,"url":"https://github.com/wzulfikar/docker-auto-deploy","last_synced_at":"2025-03-15T16:11:28.831Z","repository":{"id":82238274,"uuid":"145754926","full_name":"wzulfikar/docker-auto-deploy","owner":"wzulfikar","description":"docker nginx template with auto-deploy (ie. for static files)","archived":false,"fork":false,"pushed_at":"2018-08-22T19:43:34.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-08T17:43:22.604Z","etag":null,"topics":["automation","docker","nginx","static-site"],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/wzulfikar.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":"2018-08-22T19:43:17.000Z","updated_at":"2018-08-22T19:44:12.000Z","dependencies_parsed_at":"2023-03-09T19:00:54.744Z","dependency_job_id":null,"html_url":"https://github.com/wzulfikar/docker-auto-deploy","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/wzulfikar%2Fdocker-auto-deploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wzulfikar%2Fdocker-auto-deploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wzulfikar%2Fdocker-auto-deploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wzulfikar%2Fdocker-auto-deploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wzulfikar","download_url":"https://codeload.github.com/wzulfikar/docker-auto-deploy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243754092,"owners_count":20342542,"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":["automation","docker","nginx","static-site"],"created_at":"2024-11-21T12:43:07.239Z","updated_at":"2025-03-15T16:11:28.809Z","avatar_url":"https://github.com/wzulfikar.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-auto-deploy\n\nan nginx docker container to serve static files with auto-deploy functionality.\n\n## Use case\n\nyou build a single page app using vue, react, etc. (or just basic html) and want to host it yourself. however, you don't want to juggle between your machine and your server to update the site (via `git pull`) everytime you push changes to your repo. this docker workflow does that `git pull` for you.\n\n## Usage\n\n1. clone or download the repo\n2. put your static files inside `www` directory\n3. run `docker-compose up`\n4. set up a webhook that points to the endpoint of the `puller` (see: `docker-compose.yml` file)\n\n## Demo\n\nTo make the usage more clear, let's demonstrate a scenario using github webhook.\n\n1. fork this repo\n2. clone your fork to your computer\n3. once cloned, run `docker-compose up`\n4. use `ngrok` to publish your puller service: `ngrok http 9999`\n5. open your fork in github and go to **Settings** → **Webhooks** and click the \"**Add Webhook**\" button\n6. key in your ngrok endpoint from step #4 in **Payload URL** column and save the setting\n7. open `www/index.html` of your fork and edit it from github editor and save\n\nat this point, github will send a request to your ngrok endpoint because the action you did in step #7 has triggered a push event. check your docker-compose logs and you'll see something like `pulling repo..`. \n\nnow, check the `www/index.html` file in your local fork and you'll notice that it has been updated, just the same like what you updated from github editor. \n\nThat's all! \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwzulfikar%2Fdocker-auto-deploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwzulfikar%2Fdocker-auto-deploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwzulfikar%2Fdocker-auto-deploy/lists"}