Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # make the shared folder read/write on Server
- chmod -R 777
- # use Srv data
- mount -t nfs -o resvport <my-ip>:/wordpress/data/wp-content ./wp-content
- # verify mount
- df
- # use volumes
- 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