Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 469 Bytes

README.md

File metadata and controls

30 lines (24 loc) · 469 Bytes

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>