Files
org-roam/20230418142242-wordpress.org
2025-11-05 09:18:11 +01:00

1.6 KiB

wordpress

wordpress is a framework to create your own website. Runs as docker container and is hosted with nginx

the config

~/wordpress-compose/docker-compose.yml

Parameter:

follow the steps explained under nginx Additionally create the the file wordpress.ini with the following content:

file_uploads = On
memory_limit = 256M
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300
max_input_time = 1000

To load this file into the wordpress container add this line to your Volumes of the wordpress service in the docker-compose compose file listed above:

    volumes:
       - ./wordpress.ini:/usr/local/etc/php/conf.d/wordpress.ini

put the wordpress.ini file in the root same folder where the compose file is and take start the docker containers with

  docker-compose up -d

if the Container is already running, take it down first with

  docker-compose down

Run wp with reverse Proxy

To run wp with rp configuration does not work out of the box. This Blog gives a detailed how to on the configuration with wp and nginx.