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
- Host: GitHub
- URL: https://github.com/josephphyo/wordpress-elasticbeanstalk
- Owner: josephphyo
- License: apache-2.0
- Created: 2019-11-27T18:55:09.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-27T19:16:36.000Z (over 6 years ago)
- Last Synced: 2025-01-11T15:39:28.920Z (over 1 year ago)
- Topics: aws, docker, elasticbeanstalk, wordpress
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`