With dh create
you can create a new website.
Usage:
dh create <template_name> <website_name>
Arguments:
<template_name> One of the template repositories on the docker hosting
github account, but without the -template suffix.
<website_name> The name of the website.
The example above would be dh create wordpress my-blog.com
.
With dh cd
you can jump into a websites directory.
Usage:
dh cd <website_name>
Arguments:
<website_name> The name of the website
With dh backup
you can backup one ore more websites.
Usage:
dh backup [options] <website_name>
Arguments:
<website_name> The name of the website
Options:
-a, --all Backup all websites. The <website_name> argument will be ignored.
--website-only Backup only the website(s) without the container data. All the
files inside the websites directory will be backed up but without
calling the backup script(s).
With dh restore
you can restore one ore more websites.
Usage:
dh restore [options] <website_name>
Arguments:
<website_name> The name of the website
Options:
-a, --all Restore all websites. The <website_name> argument will be ignored.
--website-only Restore only the website(s) without the container data. All the
files inside the websites directory will be restored but without
calling the restore script(s).
docker build -t dh .
# Now run dh, mount ./webserver to containers /var/www directory
docker run --rm -ti --volume $PWD/webserver:/var/www dh create wordpress test.de