Created
October 17, 2020 18:06
-
-
Save junedkhatri31/9c01b87c4d56ad3ef7a599b6afffe911 to your computer and use it in GitHub Desktop.
Launch wordpress in AWS EC2 docker with RDS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2" | |
services: | |
wp_web: | |
image: wordpress | |
restart: always | |
ports: | |
- "80:80" | |
environment: | |
WORDPRESS_DB_HOST: rds-host | |
WORDPRESS_DB_USER: rds-user | |
WORDPRESS_DB_PASSWORD: rds-password | |
WORDPRESS_DB_NAME: wordpress | |
volumes: | |
- /opt/wordpress/plugins:/var/www/html/wp-content/plugins | |
- /opt/wordpress/themes:/var/www/html/wp-content/themes | |
- /opt/wordpress/uploads:/var/www/html/wp-content/uploads |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment