<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://serverrental.store/index.php?action=history&amp;feed=atom&amp;title=Docker_Tutorial</id>
	<title>Docker Tutorial - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://serverrental.store/index.php?action=history&amp;feed=atom&amp;title=Docker_Tutorial"/>
	<link rel="alternate" type="text/html" href="https://serverrental.store/index.php?title=Docker_Tutorial&amp;action=history"/>
	<updated>2026-04-07T10:35:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://serverrental.store/index.php?title=Docker_Tutorial&amp;diff=1542&amp;oldid=prev</id>
		<title>Admin: Automated server configuration article</title>
		<link rel="alternate" type="text/html" href="https://serverrental.store/index.php?title=Docker_Tutorial&amp;diff=1542&amp;oldid=prev"/>
		<updated>2025-04-15T11:03:36Z</updated>

		<summary type="html">&lt;p&gt;Automated server configuration article&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;# Docker Tutorial&lt;br /&gt;
&lt;br /&gt;
This tutorial provides a comprehensive guide to setting up a MediaWiki installation using [[Docker]] and [[Docker Compose]]. This method offers a consistent and isolated environment, simplifying deployment and management. It is intended for users with some familiarity with the command line and basic server administration concepts.&lt;br /&gt;
&lt;br /&gt;
== Prerequisites&lt;br /&gt;
&lt;br /&gt;
Before you begin, ensure you have the following installed on your server:&lt;br /&gt;
&lt;br /&gt;
*   [[Docker]] engine (version 20.10.0 or higher recommended)&lt;br /&gt;
*   [[Docker Compose]] (version 1.29.2 or higher recommended)&lt;br /&gt;
*   A basic understanding of [[Linux]] command-line operations.&lt;br /&gt;
*   Sufficient system resources (see the &amp;quot;Resource Requirements&amp;quot; section below).&lt;br /&gt;
&lt;br /&gt;
== Resource Requirements&lt;br /&gt;
&lt;br /&gt;
The following table outlines the recommended minimum resource requirements for running MediaWiki in Docker:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Resource&lt;br /&gt;
! Minimum Requirement&lt;br /&gt;
! Recommended&lt;br /&gt;
|-&lt;br /&gt;
| CPU&lt;br /&gt;
| 1 Core&lt;br /&gt;
| 2+ Cores&lt;br /&gt;
|-&lt;br /&gt;
| Memory (RAM)&lt;br /&gt;
| 2 GB&lt;br /&gt;
| 4+ GB&lt;br /&gt;
|-&lt;br /&gt;
| Disk Space&lt;br /&gt;
| 20 GB&lt;br /&gt;
| 50+ GB (depending on wiki size)&lt;br /&gt;
|-&lt;br /&gt;
| Operating System&lt;br /&gt;
| Linux (Ubuntu, Debian, CentOS recommended)&lt;br /&gt;
| Linux (Ubuntu, Debian, CentOS recommended)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
These are estimates and may vary depending on the size and activity of your wiki.&lt;br /&gt;
&lt;br /&gt;
== Docker Compose File&lt;br /&gt;
&lt;br /&gt;
The core of this setup is the `docker-compose.yml` file. This file defines the services required for MediaWiki – typically a [[MariaDB]] database and an [[Apache]] web server running [[PHP]].&lt;br /&gt;
&lt;br /&gt;
Here's a sample `docker-compose.yml` file:&lt;br /&gt;
&lt;br /&gt;
```yaml&lt;br /&gt;
version: &amp;quot;3.9&amp;quot;&lt;br /&gt;
&lt;br /&gt;
services:&lt;br /&gt;
  db:&lt;br /&gt;
    image: mariadb:10.6&lt;br /&gt;
    container_name: mediawiki_db&lt;br /&gt;
    restart: always&lt;br /&gt;
    environment:&lt;br /&gt;
      MYSQL_ROOT_PASSWORD: your_root_password&lt;br /&gt;
      MYSQL_DATABASE: mediawiki&lt;br /&gt;
      MYSQL_USER: mediawiki&lt;br /&gt;
      MYSQL_PASSWORD: your_mediawiki_password&lt;br /&gt;
    volumes:&lt;br /&gt;
      - db_data:/var/lib/mysql&lt;br /&gt;
&lt;br /&gt;
  web:&lt;br /&gt;
    image: mediawiki:latest&lt;br /&gt;
    container_name: mediawiki_web&lt;br /&gt;
    restart: always&lt;br /&gt;
    ports:&lt;br /&gt;
      - &amp;quot;80:80&amp;quot;&lt;br /&gt;
    depends_on:&lt;br /&gt;
      - db&lt;br /&gt;
    environment:&lt;br /&gt;
      MW_DB_TYPE: mariadb&lt;br /&gt;
      MW_DB_SERVER: db&lt;br /&gt;
      MW_DB_NAME: mediawiki&lt;br /&gt;
      MW_DB_USER: mediawiki&lt;br /&gt;
      MW_DB_PASSWORD: your_mediawiki_password&lt;br /&gt;
    volumes:&lt;br /&gt;
      - wiki_data:/var/www/html&lt;br /&gt;
&lt;br /&gt;
volumes:&lt;br /&gt;
  db_data:&lt;br /&gt;
  wiki_data:&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
**Important:**  Replace `your_root_password` and `your_mediawiki_password` with strong, secure passwords.&lt;br /&gt;
&lt;br /&gt;
== Explanation of the Docker Compose File&lt;br /&gt;
&lt;br /&gt;
Let's break down the `docker-compose.yml` file:&lt;br /&gt;
&lt;br /&gt;
*   `version: &amp;quot;3.9&amp;quot;`: Specifies the Docker Compose file version.&lt;br /&gt;
*   `services:`: Defines the services that will be run.&lt;br /&gt;
    *   `db:`:  Defines the MariaDB database service.&lt;br /&gt;
        *   `image: mariadb:10.6`: Uses the official MariaDB 10.6 image from Docker Hub.&lt;br /&gt;
        *   `container_name: mediawiki_db`: Assigns a name to the container.&lt;br /&gt;
        *   `restart: always`: Ensures the container restarts automatically if it fails.&lt;br /&gt;
        *   `environment:`: Sets environment variables for the database.&lt;br /&gt;
        *   `volumes:`:  Mounts a volume to persist the database data.  This is crucial so your data isn't lost when the container is stopped or removed.&lt;br /&gt;
    *   `web:`: Defines the MediaWiki web server service.&lt;br /&gt;
        *   `image: mediawiki:latest`: Uses the official MediaWiki image from Docker Hub.  `latest` pulls the most recent version.&lt;br /&gt;
        *   `container_name: mediawiki_web`: Assigns a name to the container.&lt;br /&gt;
        *   `restart: always`: Ensures the container restarts automatically if it fails.&lt;br /&gt;
        *   `ports:`: Maps port 80 on the host machine to port 80 inside the container.  This allows you to access the wiki through your browser.&lt;br /&gt;
        *   `depends_on:`: Specifies that the `web` service depends on the `db` service.  Docker Compose will start the `db` service before the `web` service.&lt;br /&gt;
        *   `environment:`: Sets environment variables for MediaWiki to connect to the database.&lt;br /&gt;
        *   `volumes:`: Mounts a volume to persist the MediaWiki configuration and files.&lt;br /&gt;
*   `volumes:`: Defines the volumes used for data persistence.&lt;br /&gt;
&lt;br /&gt;
== Starting the Services&lt;br /&gt;
&lt;br /&gt;
1.  Save the above content as `docker-compose.yml` in a directory of your choice.&lt;br /&gt;
2.  Open a terminal and navigate to the directory containing the `docker-compose.yml` file.&lt;br /&gt;
3.  Run the following command:&lt;br /&gt;
&lt;br /&gt;
    ```bash&lt;br /&gt;
    docker-compose up -d&lt;br /&gt;
    ```&lt;br /&gt;
&lt;br /&gt;
    This command will download the necessary images (if not already present) and start the containers in detached mode (running in the background).&lt;br /&gt;
&lt;br /&gt;
== Accessing MediaWiki&lt;br /&gt;
&lt;br /&gt;
Once the containers are running, open your web browser and navigate to `http://localhost` (or the IP address of your server if you are not running this locally).  You should see the MediaWiki setup screen.&lt;br /&gt;
&lt;br /&gt;
== Initial Configuration&lt;br /&gt;
&lt;br /&gt;
Follow the on-screen instructions to configure your MediaWiki installation.  You will need to provide information such as:&lt;br /&gt;
&lt;br /&gt;
*   Database type (MariaDB)&lt;br /&gt;
*   Database name (mediawiki)&lt;br /&gt;
*   Database username (mediawiki)&lt;br /&gt;
*   Database password (your_mediawiki_password)&lt;br /&gt;
*   Admin username and password&lt;br /&gt;
&lt;br /&gt;
== Important Considerations&lt;br /&gt;
&lt;br /&gt;
* **Backups:** Regularly back up the `db_data` and `wiki_data` volumes to prevent data loss.  You can use tools like `docker volume backup` or simply copy the volume directories.&lt;br /&gt;
* **Updates:** To update MediaWiki, stop the containers, pull the latest image (`docker pull mediawiki:latest`), and restart the containers (`docker-compose up -d`). The database will retain your data.&lt;br /&gt;
* **Customization:** You can customize the MediaWiki configuration by modifying the `LocalSettings.php` file within the `wiki_data` volume.&lt;br /&gt;
* **Security:**  Ensure your server is properly secured with a firewall and other security measures.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Problem&lt;br /&gt;
! Possible Solution&lt;br /&gt;
|-&lt;br /&gt;
| Wiki not accessible in browser&lt;br /&gt;
| Verify Docker and Docker Compose are running. Check the container logs (`docker-compose logs`). Ensure port 80 is not blocked by a firewall.&lt;br /&gt;
|-&lt;br /&gt;
| Database connection errors&lt;br /&gt;
| Double-check the database credentials in the `docker-compose.yml` file and during the MediaWiki setup. Verify the MariaDB container is running.&lt;br /&gt;
|-&lt;br /&gt;
| Slow performance&lt;br /&gt;
| Increase the CPU and memory allocated to the containers. Optimize your database queries.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
For further assistance, consult the official [[MediaWiki documentation]] and the [[Docker documentation]].  Also, consider checking the [[Stack Overflow]] website for solutions to common problems.&lt;br /&gt;
&lt;br /&gt;
== Advanced Configuration&lt;br /&gt;
&lt;br /&gt;
For more advanced configurations, you might consider:&lt;br /&gt;
&lt;br /&gt;
*   Using a reverse proxy like [[Nginx]] or [[Apache]] for SSL termination and load balancing.&lt;br /&gt;
*   Configuring persistent storage with a network file system (NFS).&lt;br /&gt;
*   Setting up a dedicated volume for uploads.&lt;br /&gt;
*   Using a different database engine, such as [[PostgreSQL]].&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Hardware]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Intel-Based Server Configurations ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Configuration&lt;br /&gt;
! Specifications&lt;br /&gt;
! Benchmark&lt;br /&gt;
|-&lt;br /&gt;
| [[Core i7-6700K/7700 Server]]&lt;br /&gt;
| 64 GB DDR4, NVMe SSD 2 x 512 GB&lt;br /&gt;
| CPU Benchmark: 8046&lt;br /&gt;
|-&lt;br /&gt;
| [[Core i7-8700 Server]]&lt;br /&gt;
| 64 GB DDR4, NVMe SSD 2x1 TB&lt;br /&gt;
| CPU Benchmark: 13124&lt;br /&gt;
|-&lt;br /&gt;
| [[Core i9-9900K Server]]&lt;br /&gt;
| 128 GB DDR4, NVMe SSD 2 x 1 TB&lt;br /&gt;
| CPU Benchmark: 49969&lt;br /&gt;
|-&lt;br /&gt;
| [[Core i9-13900 Server (64GB)]]&lt;br /&gt;
| 64 GB RAM, 2x2 TB NVMe SSD&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| [[Core i9-13900 Server (128GB)]]&lt;br /&gt;
| 128 GB RAM, 2x2 TB NVMe SSD&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| [[Core i5-13500 Server (64GB)]]&lt;br /&gt;
| 64 GB RAM, 2x500 GB NVMe SSD&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| [[Core i5-13500 Server (128GB)]]&lt;br /&gt;
| 128 GB RAM, 2x500 GB NVMe SSD&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| [[Core i5-13500 Workstation]]&lt;br /&gt;
| 64 GB DDR5 RAM, 2 NVMe SSD, NVIDIA RTX 4000&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== AMD-Based Server Configurations ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Configuration&lt;br /&gt;
! Specifications&lt;br /&gt;
! Benchmark&lt;br /&gt;
|-&lt;br /&gt;
| [[Ryzen 5 3600 Server]]&lt;br /&gt;
| 64 GB RAM, 2x480 GB NVMe&lt;br /&gt;
| CPU Benchmark: 17849&lt;br /&gt;
|-&lt;br /&gt;
| [[Ryzen 7 7700 Server]]&lt;br /&gt;
| 64 GB DDR5 RAM, 2x1 TB NVMe&lt;br /&gt;
| CPU Benchmark: 35224&lt;br /&gt;
|-&lt;br /&gt;
| [[Ryzen 9 5950X Server]]&lt;br /&gt;
| 128 GB RAM, 2x4 TB NVMe&lt;br /&gt;
| CPU Benchmark: 46045&lt;br /&gt;
|-&lt;br /&gt;
| [[Ryzen 9 7950X Server]]&lt;br /&gt;
| 128 GB DDR5 ECC, 2x2 TB NVMe&lt;br /&gt;
| CPU Benchmark: 63561&lt;br /&gt;
|-&lt;br /&gt;
| [[EPYC 7502P Server (128GB/1TB)]]&lt;br /&gt;
| 128 GB RAM, 1 TB NVMe&lt;br /&gt;
| CPU Benchmark: 48021&lt;br /&gt;
|-&lt;br /&gt;
| [[EPYC 7502P Server (128GB/2TB)]]&lt;br /&gt;
| 128 GB RAM, 2 TB NVMe&lt;br /&gt;
| CPU Benchmark: 48021&lt;br /&gt;
|-&lt;br /&gt;
| [[EPYC 7502P Server (128GB/4TB)]]&lt;br /&gt;
| 128 GB RAM, 2x2 TB NVMe&lt;br /&gt;
| CPU Benchmark: 48021&lt;br /&gt;
|-&lt;br /&gt;
| [[EPYC 7502P Server (256GB/1TB)]]&lt;br /&gt;
| 256 GB RAM, 1 TB NVMe&lt;br /&gt;
| CPU Benchmark: 48021&lt;br /&gt;
|-&lt;br /&gt;
| [[EPYC 7502P Server (256GB/4TB)]]&lt;br /&gt;
| 256 GB RAM, 2x2 TB NVMe&lt;br /&gt;
| CPU Benchmark: 48021&lt;br /&gt;
|-&lt;br /&gt;
| [[EPYC 9454P Server]]&lt;br /&gt;
| 256 GB RAM, 2x2 TB NVMe&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Order Your Dedicated Server ==&lt;br /&gt;
[https://powervps.net/?from=32 Configure and order] your ideal server configuration&lt;br /&gt;
&lt;br /&gt;
=== Need Assistance? ===&lt;br /&gt;
* Telegram: [https://t.me/powervps @powervps Servers at a discounted price]&lt;br /&gt;
&lt;br /&gt;
⚠️ *Note: All benchmark scores are approximate and may vary based on configuration. Server availability subject to stock.* ⚠️&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>