Skip to content

Instantly share code, notes, and snippets.

@junedkhatri31
Created October 17, 2020 18:06
Show Gist options
  • Save junedkhatri31/9c01b87c4d56ad3ef7a599b6afffe911 to your computer and use it in GitHub Desktop.
Save junedkhatri31/9c01b87c4d56ad3ef7a599b6afffe911 to your computer and use it in GitHub Desktop.
Launch wordpress in AWS EC2 docker with RDS
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