Skip to content

xNok/infra-bootstrap-tools

Repository files navigation

Startup Infra for Small Self-hosted Projects

Ansible GitHub Actions Docker Vagrant Terraform

This repository provides Ansible playbooks to set up a minimal infrastructure for a simple self-hosted application. Ideal for small hobby projects. I made this repository a place to Learn about DevOps and Cloud Infrastructure. You have all the tutorial you need to get started.

Features:

  • docker-swarm
  • Caddy
  • Portainer
  • Prometheus
  • Graphana

Articles and Tutorials

The article / tutorial are splited into sections.

  • Introduction -> What are the tools to use to manager infrastructure. Perfect to learn the basis.
  • How-tos -> Good take away fron this project - Answers many questions you could encounter in the future
  • Main quest -> Deploy the Infrastructure using Ansible, Terraform and Github Action
  • Deepening Understanding -> learn more about each applicaton used in this setup (Portainer, Graphana, Caddy, etc.)

Tools Introduction

Learn the Tools

Main Quest - Put it all together

Learn about the applications used in this setup

Architecture

Handy tool chain

Wanna go fast? Too lazy to setup your local env?

Then use the the tools from a docker container. I included a simple toochain in this repository and usefull alias to use it.

Use common infrastructure tools in docker with:

source ./bin/docker_tools_alias.sh
use dasb for ansible in docker
use dap for ansible-playbook in docker
use daws for awscli in docker
use dpk for packer in docker
use dtf for terraform in docker
use dbash for bash in docker

Scale Up

With docker swarm and portainer it because easy to manager multiple nodes.