Public Repository

Last pushed: 2 years ago
Short Description
Infinite WordPress plugin image
Full Description

This image provides a by version tagged Docker image of Infinite WordPress plugin to manage multiple WordPress installations.

You can use it with fig like this`:

web:
  image: nginx
  volumes:
    - ./nginxsite.conf:/etc/nginx/conf.d/default.conf
  volumes_from:
    - app
  ports:
    - "80:80"
  links:
    - app
app:
  image: ministryofjustice/iwpadmin:<version_tag>
  links:
    - db
db:
  image: mysql
  environment:
    MYSQL_ROOT_PASSWORD: xxxxx
    MYSQL_USER: your_mysql_user
    MYSQL_PASSWORD: mysql_password
    MYSQL_DATABASE: mysql_database

Once you have fig installed you can run simply run fig up -d and you'll have everything up and running. Please DO change the above MYSQL credentials.

The contents of the nginxsite.conf is as follows, but you can obviously use a different configuration:

server {
  listen       80;
  server_name _;

  root /var/www/html;
  index index.php index.html index.htm;

  location / {
      try_files $uri $uri/ /index.html;
  }

  location ~* \.(html|jpg|jpeg|gif|png|css|js|ico|xml)$ {
      access_log        off;
      log_not_found     off;
      expires           360d;
  }

  location ~* \.php$ {
      try_files $uri =404;
      include fastcgi_params;
      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
      fastcgi_index index.php;
      fastcgi_pass app:9000;
  }
}
Docker Pull Command
Owner
ministryofjustice

Comments (0)