Skip to main content

Wordpress Docker Setup

Table of Contents

Description

This is a README description of a Docker-based Wordpress website.

Prerequisites

  • Docker
  • Docker Compose

Quickstart

  1. Clone the following Github Repository:
git clone git@github.com:HerzogElias/Wordpress_Docker.git
  1. Navigate to the correct directory:
cd /Wordpress_Docker
  1. Copy your env file:
cp example.env .env 
  1. Run your Docker image with Docker Compose:
docker compose up --build
  1. Navigate to your Wordpress site in your browser:
<your-ip:8080>

Usage

Login to Admin Panel

  1. Navigate to your Wordpress Admin Panel:
<your-ip:8080/admin>
  1. Login to the Admin Panel. In your Docker Compose file you can find login data:
      - WORDPRESS_USERNAME              
- WORDPRESS_PASSWORD
- WORDPRESS_EMAIL

Stop Container

You can stop the container with the following command:

docker compose down 

Start Container in Detach Mode

To start the container in detach mode use the following command:

docker compose up -d