Re: Docker Compose and App Deployment with MySQL
Posted by: marck boucher
Date: November 30, 2017 04:44AM

MYSQL is a extensively used, open-source relational database management system.
You can utilize Docker Compose to simply run WordPress in an lonely environment build with Docker containers.

Docker is a container stage that allows easy and speedy software installations on any system or OS. It hush-up the piece of software in a complete file system that includes everything it requirements to run such as code, runtime, system tools and libraries.

Using Docker Compose you need the Docker Daemon to run on cloud Server.

There is source code:

Docker-compose.yml
version: '2'
services:
web:
build: .
command: php -S 0.0.0.0:8000 -t /code/wordpress/
ports:
- "80:8000"
depends_on:
- db
volumes:
- .:/code
db:
image: mysql
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: wordpress
Here we essential to download the wordress into our roject directory to run its command:

Options: ReplyQuote


Subject
Written By
Posted
Re: Docker Compose and App Deployment with MySQL
November 30, 2017 04:44AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.