{"id":336,"date":"2019-04-24T23:35:20","date_gmt":"2019-04-24T23:35:20","guid":{"rendered":"https:\/\/unsrewiki.1sys1.com\/?p=336"},"modified":"2019-04-30T18:50:11","modified_gmt":"2019-04-30T18:50:11","slug":"deploying-a-wordpress-site-using-docker","status":"publish","type":"post","link":"https:\/\/server-help.org\/index.php\/2019\/04\/24\/deploying-a-wordpress-site-using-docker\/","title":{"rendered":"Deploying a Website using Docker"},"content":{"rendered":"\n<p>1). First image your server with a pre-built docker image or follow the instructions below to install manually:<\/p>\n\n\n\n<p>A). yum install -y yum-utils device-mapper-persistent-data lvm2<br>B). yum-config-manager &#8211;add-repo https:\/\/download.docker.com\/linux\/centos\/docker-ce.repo<br>C). yum install docker<br>D). systemctl start docker<br>E). systemctl enable docker<br><\/p>\n\n\n\n<p>2). cd \/opt<br>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<br> 4). chmod +x \/usr\/local\/bin\/docker-compose<br> 5). yum install git<br> 6). git clone https:\/\/github.com\/cytopia\/devilbox<br> 7). cd devilbox<br> 8). cp env-example .env<br> 9). vi .env<br> Edit and set the following:<br> DEVILBOX_UI_PROTECT=1<br> DEVILBOX_UI_PASSWORD=yourpassword<br> TLD_SUFFIX=com<br> MYSQL_ROOT_PASSWORD=yourpassword<\/p>\n\n\n\n<p>Change additional values for programs and the versions that you want, for example:<br> MYSQL_SERVER=mysql-5.7<br> PHP_SERVER=7.3<br> HTTPD_SERVER=apache-2.4<\/p>\n\n\n\n<p>10). docker-compose up -d<br>11). Login using your IP with username: devilbox and the password set in step 9.<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/unsrewiki.1sys1.com\/wp-content\/uploads\/2019\/04\/dvb-1024x522.png\" alt=\"\" class=\"wp-image-337\" width=\"860\" height=\"438\" srcset=\"https:\/\/server-help.org\/wp-content\/uploads\/2019\/04\/dvb-1024x522.png 1024w, https:\/\/server-help.org\/wp-content\/uploads\/2019\/04\/dvb-300x153.png 300w, https:\/\/server-help.org\/wp-content\/uploads\/2019\/04\/dvb-768x392.png 768w, https:\/\/server-help.org\/wp-content\/uploads\/2019\/04\/dvb.png 1675w\" sizes=\"(max-width: 860px) 100vw, 860px\" \/><\/figure>\n\n\n\n<p>12). Create a site:<br> mkdir -p \/opt\/devilbox\/data\/www\/mydomain-without-the-dotcom\/htdocs<\/p>\n\n\n\n<p>13). Transfer existing Website or installation files into the folder created.<\/p>\n\n\n\n<p>*Backups*<\/p>\n\n\n\n<p>Website data will be located in: \/opt\/devilbox\/data\/www<\/p>\n\n\n\n<p>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.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 lvm2B). yum-config-manager &#8211;add-repo https:\/\/download.docker.com\/linux\/centos\/docker-ce.repoC). yum install dockerD). systemctl start dockerE). systemctl enable docker 2). cd \/opt3). 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&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/posts\/336"}],"collection":[{"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/comments?post=336"}],"version-history":[{"count":11,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/posts\/336\/revisions"}],"predecessor-version":[{"id":351,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/posts\/336\/revisions\/351"}],"wp:attachment":[{"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/media?parent=336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/categories?post=336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/tags?post=336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}