{"id":20339166,"url":"https://github.com/nealfennimore/neal.codes-docker","last_synced_at":"2026-04-28T16:37:01.124Z","repository":{"id":80104787,"uuid":"66618331","full_name":"nealfennimore/neal.codes-docker","owner":"nealfennimore","description":"Docker config for personal website","archived":false,"fork":false,"pushed_at":"2017-07-03T22:09:12.000Z","size":136,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-04T14:40:59.706Z","etag":null,"topics":["api","docker","ghost-blog","nginx"],"latest_commit_sha":null,"homepage":"https://neal.codes","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/nealfennimore.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":"2016-08-26T05:09:40.000Z","updated_at":"2018-05-08T11:04:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"a92b4edf-c168-4c50-8672-c2b8b917e376","html_url":"https://github.com/nealfennimore/neal.codes-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nealfennimore/neal.codes-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nealfennimore%2Fneal.codes-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nealfennimore%2Fneal.codes-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nealfennimore%2Fneal.codes-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nealfennimore%2Fneal.codes-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nealfennimore","download_url":"https://codeload.github.com/nealfennimore/neal.codes-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nealfennimore%2Fneal.codes-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32390050,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T14:34:11.604Z","status":"ssl_error","status_checked_at":"2026-04-28T14:32:37.009Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["api","docker","ghost-blog","nginx"],"created_at":"2024-11-14T21:15:35.855Z","updated_at":"2026-04-28T16:37:01.084Z","avatar_url":"https://github.com/nealfennimore.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Mac installation\n\nGet the latest [Docker mac installer](https://docs.docker.com/docker-for-mac/).\n***Docker machine is not used, as we use xhyve instead of virtualbox with this installer***\n\n## Initial install\nFrom root directory run:\n```sh\nbash scripts/init.sh\n```\n\nTo build:\n```sh\nbash build.sh\n```\n\nTo start:\n```sh\nbash start.sh\n```\n\n## Digital Ocean Setup\n\nOnly tested on Ubuntu 16.04. Used with a 512MB Droplet.\n\n```sh\napt install pcregrep\n\n# Add docker user to docker and sudoers group. Update group id to 1000\ngroupmod docker -g 1000\nuseradd docker -m -d /home/docker -g docker\nusermod -aG sudo docker\npasswd docker # Update password to run as sudo\n\n# Enable Firewall\nufw enable\nufw allow OpenSSH\nufw allow ssh\nufw allow http\nufw allow https\nufw limit ssh\n\n# Disable root login\nvi /etc/ssh/sshd_config\n#PermitRootLogin no\nservice sshd restart\n\n# Create Swap file\nsudo fallocate -l 4G /swapfile\nsudo chmod 600 /swapfile\nsudo mkswap /swapfile\nsudo swapon /swapfile\nsudo cp /etc/fstab /etc/fstab.bak\necho '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab\n\nsudo sysctl vm.swappiness=10\necho 'vm.swappiness=10' \u003e\u003e /etc/sysctl.conf\n\nsudo sysctl vm.vfs_cache_pressure=50\necho 'vm.vfs_cache_pressure=50' \u003e\u003e /etc/sysctl.conf\n\n```\n\n### Cloning Repo\n\nWhen SSH'ed into the Digital Ocean server:\n\n```sh\ncd /home/docker\ngit clone --recursive git@github.com:nealfennimore/neal.codes-docker.git docker\ncd docker # /home/docker/docker\nbash scripts/init.sh\n```\n\n### SSH Config\nAdd an SSH alias in your local machine `~/.ssh/config`:\n\n```sh\nHost neal.codes\n\tHostName neal.codes # Or your Digital Ocean IP\n\tUser docker\n\tIdentityFile ~/.ssh/id_rsa\n```\n\n#### Setting up push-to-update\nYou can now push to production and have the entire application rebuilt automatically utilizing git post-update hooks.\n\nOn your local machine:\n```sh\ngit remote add production ssh://neal.codes/home/docker/docker\ngit push production\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnealfennimore%2Fneal.codes-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnealfennimore%2Fneal.codes-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnealfennimore%2Fneal.codes-docker/lists"}