Skip to content

WPaaS is an opinionated deployment mechanism for deploying disposable WordPress servers.

License

Notifications You must be signed in to change notification settings

getglad/wp_as_a_service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wp_as_a_service

WPaaS is an opinionated deployment mechanism for deploying disposable WordPress servers.

It accomplishes this goal by largely separating the concerns of a standard WordPress deployment into:

  1. A remote mysql-compatible database
  2. S3-Compatible object storage for media files via S3 Uploads
  3. Containerized WordPress with templates and plugins pre-loaded

This project is designed to be:

  1. deployed by Terraform
  2. deployed to Digital Ocean using
    1. Apps
    2. Spaces
    3. Databases

Deploying

Prereqs

  1. tfenv
  2. doctl

Infrastructure

The infra for WPaaS is defined in Terraform. There are a number of required variables outlined in the README.

Notes

  1. This project assumes it will be deployed with Terraform Cloud or as a module of a larger project, thus does not define a TF state backend. Users who intend to deploy it by itself and without TFC should define their own backend.
  2. The Digital Ocean Spaces resource will be assigned a name using the random provider to avoid naming collisions.

Deploying

  1. An initial Terraform deployment will fail as it will create the Container Repository, but an image will not yet exist to be referenced by the app.
  2. make img_push
    1. This command will build and push the container image and will require doctl to be configured with your credentials.
  3. A second deploy should be successful.

Contributing

This project is a work in progress. Issues and PRs are welcomed!

About

WPaaS is an opinionated deployment mechanism for deploying disposable WordPress servers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published