Skip to content

Packer templates for deploying Laravel applications on Digital Ocean infrastructure

Notifications You must be signed in to change notification settings

ChrisHardie/packer-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Packer templates for deploying Laravel apps on Digital Ocean

These are my Packer templates for deploying Laravel applications on Digital Ocean infrastructure.

Installs:

  • PHP 8
  • Nginx
  • MySQL
  • Redis
  • Memcached
  • Postfix
  • Certbot
  • Supervisor

Configuration

Create a variables.json file with your Digital Ocean API token:

{
  "do_api_token": "YOUR_DIGITAL_OCEAN_API_TOKEN_HERE"
}

Usage

To build a Digital Ocean droplet snapshot in nyc3:

brew upgrade packer
packer plugins install github.com/digitalocean/digitalocean
packer validate -var-file=variables.json laravel-lemp/template.json
packer build -var-file=variables.json laravel-lemp/template.json

Then, create a droplet from the resulting snapshot.

More information

Links and guides that helped inform this setup:

Author

Chris Hardie

About

Packer templates for deploying Laravel applications on Digital Ocean infrastructure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published