I would like to launch a wordpress stack with larger upload limits than the default php.ini file provides. In the directory /home/harold/Wordpress
on my desktop computer I have two files:
docker-compose.yml
contains:
db:
image: mysql:latest
environment:
MYSQL_ROOT_PASSWORD: “MYPASSWORD”
wordpress:
image: wordpress:latest
ports:
- “81:80”
links:
- db:mysql
volumes:
- uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
and uploads.ini
contains:
file_uploads = On
memory_limit = 64M
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 600
Then in that directory I execute:
% export RANCHER_URL=http://192.168.0.3:8080
% export RANCHER_ACCESS_KEY=ABCD3D8C2E66C563C0EF
% export RANCHER_SECRET_KEY=verylongkeyherenoquotationmarks
% rancher-compose up
This creates the stack and successfully starts mysql and wordpress on a host. I am able to configure Wordpress by surfing to http://widgetsRus.com:81
Examining the container, I can see that an empty directory has been created /usr/local/etc/php/conf.d/uploads.ini
How should I do this correctly?
Thanks in advance!