1). First image your server with a pre-built docker image or follow the instructions below to install manually:
A). yum install -y yum-utils device-mapper-persistent-data lvm2
B). yum-config-manager –add-repo https://download.docker.com/linux/centos/docker-ce.repo
C). yum install docker
D). systemctl start docker
E). systemctl enable docker
2). cd /opt
3). sudo curl -L http://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
4). chmod +x /usr/local/bin/docker-compose
5). yum install git
6). git clone https://github.com/cytopia/devilbox
7). cd devilbox
8). cp env-example .env
9). vi .env
Edit and set the following:
DEVILBOX_UI_PROTECT=1
DEVILBOX_UI_PASSWORD=yourpassword
TLD_SUFFIX=com
MYSQL_ROOT_PASSWORD=yourpassword
Change additional values for programs and the versions that you want, for example:
MYSQL_SERVER=mysql-5.7
PHP_SERVER=7.3
HTTPD_SERVER=apache-2.4
10). docker-compose up -d
11). Login using your IP with username: devilbox and the password set in step 9.
12). Create a site:
mkdir -p /opt/devilbox/data/www/mydomain-without-the-dotcom/htdocs
13). Transfer existing Website or installation files into the folder created.
*Backups*
Website data will be located in: /opt/devilbox/data/www
MySQL data will be located in: /var/lib/docker/volumes/devilbox_devilbox-mysql-5.7 (Note that the path will change after volume if a different MySQL or MariaDB version is used instead.)
Your home is valueble for me. Thanks!…