/wordpress-docker

Wordpress Docker

Primary LanguageDockerfileMIT LicenseMIT

wordpress-docker

This is creates a docker container containing wordpress and apache2 server.

Requirements

Add all the environment variable otherwise it will show Error Connecting with the database

Build

docker build -t my-wordpress

Run

docker run -p 8000:80 -d --env-file .env my-wordpress

Stop

docker stop <container_id>

Start

docker start <container_id>

logs

docker logs <container_id>