Skip to content

A docker-compose project that use wordpress and mysql images simultaneously and create a harmony to run wordpress

License

Notifications You must be signed in to change notification settings

younesmod/docker-compose-wordpress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Image MIT Scan Docker Image Build and Push Docker Images

🐳 WordPress + MySQL with Docker Compose

A clean, production-style setup for running WordPress and MySQL using Docker Compose.

🚀 Features

  • Two-tier containerized stack (WordPress + MySQL)
  • Persistent data with Docker volumes
  • Secure configuration using environment variables
  • Healthcheck for database service
  • Auto-restart and network isolation

🧩 Setup

  1. Clone the repo

    git clone https://github.com/younesmod/docker-compose-wordpress.git
    cd docker-compose-wordpress
  2. Create .envfile

    cp .env.example .env
    # edit your credentials inside .env
  3. Run the stack

    docker-compose up -d
  4. Access the site

🧹 Cleanup

docker-compose down -v

About

A docker-compose project that use wordpress and mysql images simultaneously and create a harmony to run wordpress

Topics

Resources

License

Stars

Watchers

Forks