SHARE
TWEET

Untitled

a guest Dec 6th, 2016 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. BASE_PATH=`pwd`
  3. WORDPRESS_DB_USER=root
  4. WORDPRESS_DB_PASSWORD=root
  5. WORDPRESS_DB_NAME=wordpress
  6. APACHE_CONFIGURATION=$BASE_PATH/wordpress/000-default.conf
  7.  
  8.  
  9. echo "=== Creating 'wordpress' with (wordpress) ==="
  10. echo "=== Variables ==="
  11. echo '$WORDPRESS_DB_USER=' $WORDPRESS_DB_USER
  12. echo '$WORDPRESS_DB_PASSWORD=' XXXXXXXXXX
  13. echo '$WORDPRESS_DB_NAME=' $WORDPRESS_DB_NAME
  14. echo '$APACHE_CONFIGURATION=' $APACHE_CONFIGURATION
  15.  
  16.  
  17. docker run  --restart=always\
  18.             --name wordpress\
  19.             -v $APACHE_CONFIGURATION:/etc/apache2/sites-enabled/000-default.conf:ro\
  20.             --env WORDPRESS_DB_USER=$WORDPRESS_DB_USER\
  21.             --env WORDPRESS_DB_PASSWORD=$WORDPRESS_DB_PASSWORD\
  22.             --env WORDPRESS_DB_NAME=$WORDPRESS_DB_NAME\
  23.             --link wordpress_mysql:mysql\
  24.             -d wordpress
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top