Public Repository

Last pushed: a year ago
Short Description
Wordpress with the ability to change uploads.ini fields through environment variables.
Full Description

Wordpress with Upload support

This version has been optimized for http://cloud2.io

Environment Variables

Use environment variables to change fields in /usr/local/etc/php/conf.d/uploads.ini:

  • PHP_UPLOAD_MEM_LIMIT
     memory_limit - default 64M
    
  • PHP_UPLOAD_MAX_FILESIZE
     upload_max_filesize - default 64M
    
  • PHP_UPLOAD_POST_MAX_SIZE
     post_max_size - default 64M
    

Docker Compose

A sample docker compose is below:

wordpress:
  image: cloud2/wordpress
  container_name: wordpress
  ports:
    - 8080:80
  volumes:
    - /var/www/html
  links:
    - "db"
  environment:
    WORDPRESS_DB_HOST: mysql
    MYSQL_PORT_3306_TCP: 3306
    MYSQL_ENV_MYSQL_USER: wordpress
    MYSQL_ENV_MYSQL_PASSWORD: wordpress
    MYSQL_ENV_MYSQL_DATABASE: wordpress
    PHP_UPLOAD_MEM_LIMIT: 124M
    PHP_UPLOAD_MAX_FILESIZE: 124M
    PHP_UPLOAD_POST_MAX_SIZE: 124M

db:
  image: mysql
  container_name: mysql
  ports:
    - 3306
  volumes:
    - /var/lib/mysql
  environment:
    MYSQL_ROOT_PASSWORD: root
    MYSQL_DATABASE: wordpress
    MYSQL_USER: wordpress
    MYSQL_PASSWORD: wordpress
  mem_limit: 1024m
Docker Pull Command
Owner
cloud2

Comments (0)