Sign inSign up

dshatohin/wordpress-servercore

By dshatohin

•Updated about 7 years ago

Production ready 👌

Image
1

1.8K

dshatohin/wordpress-servercore repository overview

⁠Wordpress 5.2 IIS Windows Servercore Container

Linux and Bash?

No, thanks!

Windows® and Powershell®

docker pull dshatohin/wordpress-servercore:latest

5.2-1903 , latest (Dockerfile)⁠

5.2-1809 (Dockerfile)⁠

5.2-ltsc2019 (Dockerfile)⁠

⁠About this image

Production ready Windows container with Wordpress on IIS. Also very useful for testing purposes.

⁠How to use this image?

Starting a Wordpress site is simple:

docker run --name wp-iis -d -p 8080:80 dshatohin/wordpress-servercore:latest

  • wp-iis - name of your container

You also can start container and set some parameters:

docker run --name wp-iis -e MYSQL_ROOT_PWD=password -e WORDPRESS_DB_HOST=mysql-db -e WORDPRESS_DB_USER=wordpressuser -e WORDPRESS_DB_PASSWORD=userpassword -e WORDPRESS_DB_NAME=wordpress -d -p 8080:80 dshatohin/wordpress-servercore:latest

  • wp-iis - name of your container
  • -e MYSQL_ROOT_PWD=password - your sercret password
  • -e WORDPRESS_DB_HOST=mysql-db - your database instanse
  • -e WORDPRESS_DB_USER=wordpressuser - name of your wordpress database user
  • -e WORDPRESS_DB_PASSWORD=userpassword- your sercret password for wordpressuser
  • -e WORDPRESS_DB_NAME=wordpress - name of your wordpress database

Parameters WORDPRESS_DB_HOST, WORDPRESS_DB_USER, WORDPRESS_DB_PASSWORD and WORDPRESS_DB_NAME is working only if you set all of them ¯\_(ツ)_/¯

⁠Deploy Wordpress and MySQL via docker stack deploy⁠

Example stack.yml for wordpress-servercore:

version: '3.1'

services:

  wp:
    image: dshatohin/wordpress-servercore:latest
    ports:
      - 8080:80
    environment:
      WORDPRESS_DB_HOST: db
      WORDPRESS_DB_USER: wordpressuser
      WORDPRESS_DB_PASSWORD: password
      WORDPRESS_DB_NAME: wordpress

  db:
    image: dshatohin/mysql-servercore:latest
    ports:
      - 3306:3306
    environment:
      MYSQL_ROOT_PWD: rootpassword
      DB_NAME: wordpress
      DB_USER: wordpressuser
      DB_USER_PWD: password

Run docker stack deploy -c stack.yml mysql and visit http://swarm-ip:8080, http://localhost:8080 or http://host-ip:8080

Tag summary

Content type

Image

Digest

Size

2.2 GB

Last updated

about 7 years ago

docker pull dshatohin/wordpress-servercore