An open API service indexing awesome lists of open source software.

https://github.com/josephphyo/wordpress-elasticbeanstalk

Wordpress Deployment with Docker & AWS Elastic Beanstalk
https://github.com/josephphyo/wordpress-elasticbeanstalk

aws docker elasticbeanstalk wordpress

Last synced: 3 months ago
JSON representation

Wordpress Deployment with Docker & AWS Elastic Beanstalk

Awesome Lists containing this project

README

          

# Wordpress Deployment with Docker & AWS Elastic Beanstalk

:computer: mkdir ~/wordpress/

:computer: cd ~/wordpress/
#### :whale: Wordpress with Docker
##### :unicorn: Download and run Mariadb latest on docker
`docker run -e MYSQL_ROOT_PASSWORD=(dbpassword) -e MYSQL_DATABASE=wordpress --name wordpressdb -v "$PWD/database":/var/lib/mysql -d mariadb:latest`

##### :unicorn: Download wordpress image and run on docker
`docker run -e WORDPRESS_DB_PASSWORD=(dbpassword) --name wordpress --link wordpressdb:mysql -p 80:80 -v "$PWD/html":/var/www/html -d wordpress`

---
#### :whale: Wordpress with Docker Compose
`cd ~/wordpress/`
##### :unicorn: Docker compose up & down
`docker-compose up -d`

`docker-compose down --volume`

---
#### :whale: Wordpress with AWS Elastic Beanstalk
###### :unicorn: Install/Configure AWSCLI and EBCLI

`cd ~/wordpress/`
###### :unicorn: Prepare eb environment and **Dockerrun.aws.json** file
`eb init`

`eb create wordpress-eb-env`