Skip to content

ecoinomist/cloud-init-config-docker-letsencrypt-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cloud-Init Config with Docker Letsencrypt Nginx Proxy for Digital Ocean Droplet Creation

Simplify the initial setup process when creating new VPS instances in host providers like Digital Ocean, by copy-pasting the user data provided in cloud-config.yml. Works with droplet creation using Ubuntu 16.04 image.

This config provides:

  • Security enhancements (best practices recommended by Digital Ocean):
    • Disabled root login
    • Disabled username/password login
    • Create new user with sudo privileges and no password for ease of use
    • Restrict SSH login to using private key, custom username and custom port
    • Enabled Firewall (only ports 80/443 and custom SSH port are open)
  • Automatic service/s launch on boot using /startup.sh
  • Automatic SSL support and renewal (IPV6 included) for domains using Letsencrypt Nginx Proxy with Docker
  • Latest Docker and Docker-Compose setup
  • Docker command aliases
  • Git command aliases

Usage

Open cloud-config.yml and do string search and replace as listed in comments.

About

Digital Ocean Cloud-Init Config YML File with Docker Letsencrypt Nginx Proxy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published