{"id":19124252,"url":"https://github.com/syedsaadahmed/devops-infrastructure-as-a-code","last_synced_at":"2026-04-10T15:38:12.833Z","repository":{"id":112196816,"uuid":"185466520","full_name":"syedsaadahmed/DevOps-Infrastructure-As-A-Code","owner":"syedsaadahmed","description":"DevOps Homework by 3yourmind for testing purposes. Example of Infrastructure as a code, further description available in readme file.","archived":false,"fork":false,"pushed_at":"2019-05-15T08:26:49.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-22T13:57:17.019Z","etag":null,"topics":["ansible","django","docker-compose","dockerfile","nginx","vuejs"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/syedsaadahmed.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":"2019-05-07T19:35:12.000Z","updated_at":"2019-07-02T12:18:29.000Z","dependencies_parsed_at":"2023-05-11T07:15:30.884Z","dependency_job_id":null,"html_url":"https://github.com/syedsaadahmed/DevOps-Infrastructure-As-A-Code","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/syedsaadahmed/DevOps-Infrastructure-As-A-Code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syedsaadahmed%2FDevOps-Infrastructure-As-A-Code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syedsaadahmed%2FDevOps-Infrastructure-As-A-Code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syedsaadahmed%2FDevOps-Infrastructure-As-A-Code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syedsaadahmed%2FDevOps-Infrastructure-As-A-Code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syedsaadahmed","download_url":"https://codeload.github.com/syedsaadahmed/DevOps-Infrastructure-As-A-Code/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syedsaadahmed%2FDevOps-Infrastructure-As-A-Code/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260088274,"owners_count":22957054,"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":["ansible","django","docker-compose","dockerfile","nginx","vuejs"],"created_at":"2024-11-09T05:28:33.253Z","updated_at":"2025-12-30T22:33:00.014Z","avatar_url":"https://github.com/syedsaadahmed.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DevOps-Homework\n\n## INTRODUCTION\n\nDevOps Homework by 3yourmind for testing purposes. Contains all the Dockerfile(s) for Front-end, Back-end, Reverse Proxy. Moreover it also contains Ansible playbook for configuration and deployment of VM, and docker-compose.yml file for the deployment of docker infrastructure containing front-end, backend and reverse proxy as a load balancer.\n\n## FRONT END\n\nFront end folder in the repositry contains the docker file to create a docker image consisting of Vue.js real world example deployed in the image, once the container will be started, it will server front-end at certain port. This image is being setup using ubuntu:16.04 official docker image from dockerhub.\n\n```\nhttps://localhost:80/\n```\n\n## BACK END\n\nBack end folder in the repositry contains the docker file to create a docker image consisting of Django real world example deployed in the image, once the container will be started, it will server back-end at certain port. This image is being setup using ubuntu:16.04 official docker image from dockerhub.\n\n```\nlocalhost:1871/\n```\n\n## ANSIBLE PLAYBOOK\n\nAnisble playbook contains two roles, one is initial-server-setup and the other is vm-setup, first of all, to setup the base server on which KVM is to be installed is setup, dependencies and other packages are being installed and configured.\nSecondly the role vm-setup is executed, using which the centos 7 KVM machine is deployed on the base server, which contains all the neccessary packages and dependecies to run docker, docker-compose and other things.\nTo execute the playbook one must have ansible installed.\n\n```\nansible-playbook DevOps-Homework/ansible-playbook/playbook.yml --extra-vars \"host=XYZ\"\n```\n\n## REVERSE PROXY (nginx)\n\nIn reverse proxy setup, self signed certificate are being generated using openssl. moreover in our case nginx is serving as reverse proxy for the infrastructure.\n\n\n## DOCKER INFRA-STRUCTURE\n\nDocker-compose.yml, contains all the steps to setup front-end, back-end, reverse proxy using nginx, and postgre DB.\nonce the docker-compose file is up, it completely setup the whole infrastructure.\n\n```\ndocker-compose --build\ndocker-compose up -d postgresql\ndocker-compose up -d \n```\n\n## STEPS TO BE TAKEN\n\n1) First of all ansible playbook is to be executed on the node to setup docker, docker-compose and other dependencies on node machine which is supposed to be a centos 7 machine.\n\n2) Secondly steps mentioned in docker infrastructure part will be executed using the commands to make the infra up and working. It will build front-end, back-end, postgresql db and reverse proxy docker images and then bring up the containers.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyedsaadahmed%2Fdevops-infrastructure-as-a-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyedsaadahmed%2Fdevops-infrastructure-as-a-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyedsaadahmed%2Fdevops-infrastructure-as-a-code/lists"}