Skip to content

nightcore-team/deploy-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Server Provision & Deployment

Automated setup for Ubuntu servers running PostgreSQL and Promtail via Docker Compose. Features an interactive provisioning script with secure defaults.

Quick Start

chmod +x provision.sh
sudo ./provision.sh

Follow the interactive menu to select components.

Project Structure

deploy-scripts/
├── provision.sh                  # Main interactive setup script
├── grafana/
│   ├── .env.example              # Promtail environment template
│   ├── deploy-promtail.sh        # Promtail deployment script
│   ├── docker-compose.yml        # Promtail Docker Compose config
│   └── promtail-config.yaml      # Promtail logging configuration
├── postgresql/
│   ├── .env.example              # PostgreSQL environment template
│   ├── deploy-postgresql.sh      # PostgreSQL deployment script
│   ├── docker-compose.yml        # PostgreSQL Docker Compose config
│   ├── postgres-backup.sh        # Manual backup script
│   └── postgres-backup-cron.sh   # Automated backup cron setup
├── .gitignore                    # Git ignore rules
├── LICENSE                       # MIT License
└── README.md                     # This file

Configuration

Before deploying services, copy and configure environment files:

cp postgresql/.env.example postgresql/.env cp grafana/.env.example grafana/.env

Edit the .env files with your credentials.

Security Notes

  • Requires root privileges for system-level changes
  • Creates a dedicated deploy_user with Docker group access
  • Generates SSH keys for automation and disables empty-password logins

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages