{"id":27013981,"url":"https://github.com/tek-works/infrastructure","last_synced_at":"2026-02-04T18:01:18.750Z","repository":{"id":132200739,"uuid":"536866446","full_name":"tek-works/Infrastructure","owner":"tek-works","description":"Infrastructure files, deployment, and installation guide. We utilize Docker Compose, Docker, Django, and more!","archived":false,"fork":false,"pushed_at":"2022-09-15T11:31:26.000Z","size":30,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-30T21:40:56.331Z","etag":null,"topics":["blog","deaconn","deployment","django","docker","docker-compose","dockercompose","dockerfile","github-action","gunicorn","gunicorn-web-server","markdown","nginx","opensource","production","web","webdesign","website"],"latest_commit_sha":null,"homepage":"https://deaconn.net/","language":"Shell","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/tek-works.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":"2022-09-15T04:41:56.000Z","updated_at":"2023-06-02T09:20:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"216d2f04-1aa3-4891-8f61-f1e28c21e39e","html_url":"https://github.com/tek-works/Infrastructure","commit_stats":{"total_commits":37,"total_committers":2,"mean_commits":18.5,"dds":0.4054054054054054,"last_synced_commit":"58509a4c69c4c586c596476a1bbf6afcc88902ac"},"previous_names":["tek-works/infrastructure","deaconn-net/infrastructure"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tek-works/Infrastructure","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tek-works%2FInfrastructure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tek-works%2FInfrastructure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tek-works%2FInfrastructure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tek-works%2FInfrastructure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tek-works","download_url":"https://codeload.github.com/tek-works/Infrastructure/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tek-works%2FInfrastructure/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29092707,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-04T03:31:03.593Z","status":"ssl_error","status_checked_at":"2026-02-04T03:29:50.742Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["blog","deaconn","deployment","django","docker","docker-compose","dockercompose","dockerfile","github-action","gunicorn","gunicorn-web-server","markdown","nginx","opensource","production","web","webdesign","website"],"created_at":"2025-04-04T13:19:25.096Z","updated_at":"2026-02-04T18:01:18.735Z","avatar_url":"https://github.com/tek-works.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deaconn's Infrastructure \u0026 Deployment\n## Description\nDeaconn's infrastructure files for deployment. I use Docker Compose and `systemd` service files to run Deaconn. Inside of the Docker container, we use production methods such as `gunicorn` to run the web server project. The project also utilizes Django.\n\nIn regards to the `back-bone` respository, when a commit is ran on the `master` branch, it automatically restarts the `deaconn` service on the Linux VM I have it running on. When the service is started or restarted, it automatically pulls from the `master` branch (production).\n\n## Installation\nYou may use `git` to clone the repository like the following.\n\n```bash\n# Clone the Deaconn infrastructure respository. If you want to use something other than '/var/deaconn', you will need change the Systemd and NGINX configuration files.\ngit clone https://github.com/Deaconn-net/Infrastructure.git /var/deaconn\n\n# Change directories.\ncd Infrastructure/\n```\n\nThe next step is either modifying the `systemd` service if you're going to run that (recommended) or the `update_and_start.sh` file. You will want to replace and uncomment the environmental variables which includes database information and the Django security key.\n\nAfterwards, you may use `make` to install the `systemd` service and the NGINX configuration (for Debian/Ubuntu-based systems; Automatically creates a symbolic link to `sites-enabled/` directory).\n\n```bash\n# Install the Systemd service.\nsudo make install\n\n# Installs the NGINX config.\nsudo make nginx_install\n```\n\nFrom here, you may try starting up the application/web server with the following commands.\n\n```bash\n# Use the Systemd service (start and enable on startup).\nsudo systemctl enable --now deaconn\n\n# If you just want to start the service, you may do.\nsudo systemctl start deaconn\n\n# If you don't want to start the service, I'd recommend executing ./update_and_start.sh.\nsudo ./update_and_start.sh\n\n# For building/rebuilding the Docker image (no caching; full rebuild).\ndocker-compose build --no-cache\n```\n\nWhile Docker Compose \u0026 Docker *should* be handling the file permissions for certain volumes, I've found it doesn't no matter what I try on my VMs. The complicated part about the file permissions is they are applied on the host itself with Docker for good reason. You can execute the following command to give proper ownership, though.\n\n```bash\nsudo docker-compose run web chown -R deaconn:deaconn /deaconn\n```\n\nFinally, you'll want to make an administrator user so you can log into the admin panel at `http://website.com/admin`.\n\n```bash\nsudo docker-compose run web cd back-bone/deaconn/ \u0026\u0026 python manage.py createsuperuser\n```\n\nAfter you've logged into admin panel, you should be able to see additional options on the blog software where you can create blogs, comment, and more.\n\n## Credits\n* [Christian Deacon](https://github.com/gamemann)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftek-works%2Finfrastructure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftek-works%2Finfrastructure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftek-works%2Finfrastructure/lists"}