Skip to content

SportUp-Tech/sport-up-infra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

sport-up-infra

This project automates the deployment of PostgreSQL and MongoDB database infrastructure and Application servers on Hetzner servers using Ansible, with secrets management handled securely via Doppler.

Requirements

  • Ansible
  • Doppler CLI
  • Hetzner Cloud account
  • SSH access to Hetzner servers

Setup

  1. Install Ansible: Follow the Ansible installation guide.
  2. Install Doppler CLI: Follow the Doppler installation guide.

Configure Doppler

doppler login
doppler setup

Project Structure

databases_ansible/
├── ansible.cfg                  # Ansible configuration file
├── inventory/hetzner.ini        # Hetzner servers inventory
├── group_vars/all.yml           # Variables loaded from Doppler environment
├── playbooks/deploy.yml         # Main deployment playbook
├── roles/                       # Ansible roles (Docker, Postgres, MongoDB)
│   ├── docker/
│   ├── postgres/
│   └── mongodb/
stack_ansible/
├── ansible.cfg                  # Ansible configuration file
├── inventory/hetzner.ini        # Hetzner servers inventory
├── group_vars/all.yml           # Variables loaded from Doppler environment
├── playbooks/deploy.yml         # Main deployment playbook
│   ├── deploy.yml               # Main deployment playbook
│   └── nginx_config/
│       ├── conf.d/default.conf  # Default Nginx configuration
│       └── nginx.conf           # Nginx configuration file
├── roles/                       # Ansible roles (App, Nginx)
│   ├── app/                     # Application server role
│   └── nginx/                   # Nginx server role
README.md

About

Ansible-based deployment of backend, PostgreSQL, and MongoDB on Hetzner with Doppler-managed secrets.

Resources

Stars

Watchers

Forks

Contributors