Wordpress Server
2.3K
Installation instruction and configuration :: https://github.com/akhilrajmailbox/wordpress.git
docker run command ::
docker run --env-file env-file -v /path/to/folder-1:/etc/apache2 -v /path/to/folder-2:/var/www/html -p <<host port>>:80 -it --name <<container-name>> --hostname <<hostname>> akhilrajmailb$
Create a file with the following variable (for docker run command) eg : env-file
# for remote database by docker run command
# mandatory docker variable
MYSQL_DATABASE = wordpress database for storing data
MYSQL_USER = wordpress username
MYSQL_PASSWORD = password for wordpress user
MYSQL_HOST = ip address of mysql server
example environment file :: (for docker run command)
# for remote database by docker run command
# mandatory docker variable
MYSQL_DATABASE=wordpress
MYSQL_USER=wordpress
MYSQL_PASSWORD=wordpress
MYSQL_HOST=192.168.1.106
NOTE ::
If these directories are not empty then the server will not overwirte the configuration, it will choose the existing one.
here we are mounting these directory to host,
/etc/apache2 = for apache2 configuration
/var/www/html = for web page
Content type
Image
Digest
Size
176.1 MB
Last updated
about 9 years ago
docker pull akhilrajmailbox/wordpress-server