Advertisement
Guest User

Untitled

a guest
Jul 11th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. # make the shared folder read/write on Server
  2. chmod -R 777
  3. # use Srv data
  4. mount -t nfs -o resvport <my-ip>:/wordpress/data/wp-content ./wp-content
  5. # verify mount
  6. df
  7. # use volumes
  8. docker run --name my-wp-container -e WORDPRESS_DB_HOST=my-srv-ip:3306 -e WORDPRESS_DB_USER=my_user -e WORDPRESS_DB_NAME=website -e WORDPRESS_DB_PASSWORD=sectretpassword -e WORDPRESS_TABLE_PREFIX=dummy_ -p 8000:80 -v /local/path/wp-content:/var/www/html/wp-content -d wordpress:4.3.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement