Wordpress on Docker [Development and Production]
The only prerequisite is you should have Docker installed
- Git clone this repository
- Make sure docker is installed
- RUN THE COMMAND
docker-compose up --build -d
- Login to wordpress by visiting http://localhost/wp-admin
Username: admin
Password: fY7GjKSOlBHI0C*o!tinGJOz
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root -B wordpress > wordpress.sql
Restore (If you do want to restore manually when docker is already running or else docker compose does restore it for you)
cat wordpress.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root wordpress