Wordpress configuration

Hi, I've been wanting to run wordpress via runtipi. Install went smooth, however, it now has an upload limit of 2MB which I want to increase. I was assuming that making a user-config/wordpress/docker-compose.yml would override the docker-compose. But its not I think. I have this in my user-config:
services:
wordpress:
image: wordpress:6.7.1
container_name: wordpress
restart: unless-stopped
networks:
- tipi_main_network
environment:
WORDPRESS_DB_HOST: wordpress-db
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DB_USER: tipi
WORDPRESS_DB_PASSWORD: ${DB_PASSWORD}
ports:
- ${APP_PORT}:80
volumes:
- ${APP_DATA_DIR}/data/wordpress:/var/www/html
- ./custom.ini:/usr/local/etc/php/conf.d/custom.ini
depends_on:
- wordpress-db
labels:
wordpress-db:
image: mariadb:11.1.3
container_name: wordpress-db
restart: unless-stopped
networks:
- tipi_main_network
volumes:
- ${APP_DATA_DIR}/data/mariadb:/var/lib/mysql
services:
wordpress:
image: wordpress:6.7.1
container_name: wordpress
restart: unless-stopped
networks:
- tipi_main_network
environment:
WORDPRESS_DB_HOST: wordpress-db
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DB_USER: tipi
WORDPRESS_DB_PASSWORD: ${DB_PASSWORD}
ports:
- ${APP_PORT}:80
volumes:
- ${APP_DATA_DIR}/data/wordpress:/var/www/html
- ./custom.ini:/usr/local/etc/php/conf.d/custom.ini
depends_on:
- wordpress-db
labels:
wordpress-db:
image: mariadb:11.1.3
container_name: wordpress-db
restart: unless-stopped
networks:
- tipi_main_network
volumes:
- ${APP_DATA_DIR}/data/mariadb:/var/lib/mysql
But I see this docker compose in the /apps directory:
services:
wordpress:
image: wordpress:6.7.1
container_name: wordpress
restart: unless-stopped
networks:
- tipi_main_network
environment:
WORDPRESS_DB_HOST: wordpress-db
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DB_USER: tipi
WORDPRESS_DB_PASSWORD: ${DB_PASSWORD}
ports:
- ${APP_PORT}:80
volumes:
- ${APP_DATA_DIR}/data/wordpress:/var/www/html
services:
wordpress:
image: wordpress:6.7.1
container_name: wordpress
restart: unless-stopped
networks:
- tipi_main_network
environment:
WORDPRESS_DB_HOST: wordpress-db
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DB_USER: tipi
WORDPRESS_DB_PASSWORD: ${DB_PASSWORD}
ports:
- ${APP_PORT}:80
volumes:
- ${APP_DATA_DIR}/data/wordpress:/var/www/html
Note that I'm missing the volume. Am I looking wrong?
5 Replies
Skullky
Skullkyβ€’4w ago
Hello, Your user config and the original docker-compose file (the one you see in "apps" directory) are merged together. Merging reference (https://docs.docker.com/reference/compose-file/merge/) This is why you don't see your changes directly reflected on files. But, this also means you only need to write what you want to add inside you user-config docker-compose file. In your case, it would be :
services:
wordpress:
volumes:
- ${APP_DATA_DIR}/data/custom.ini:/usr/local/etc/php/conf.d/custom.ini
services:
wordpress:
volumes:
- ${APP_DATA_DIR}/data/custom.ini:/usr/local/etc/php/conf.d/custom.ini
To answer your functionnal problem, You'll see that I have fixed the host path of the volume from ./custom.ini (relative path) to ${APP_DATA_DIR}/data/custom.ini (full path). You should be able to edit your file at this location runtipi/app-data/wordpress/data/custom.ini I hope this answer your question and solve your problem πŸ™‚
patrickdronk
patrickdronkOPβ€’4w ago
Hi, thanks. Let me check that out πŸ™‚ Thanks, so that worked! Now it seems like traefik is responding with 413 response to large. Any idea how I can fix that? I've tried some stuf from S.O but nothing that really helped me uptil now.
Nicolas
Nicolasβ€’4w ago
You probably need a custom main docker-compose to override the default limits
Nicolas
Nicolasβ€’4w ago
Traefik Buffering Documentation - Traefik
The HTTP buffering middleware in Traefik Proxy limits the size of requests that can be forwarded to Services. Read the technical documentation.
InfBoumcyCastle
InfBoumcyCastleβ€’4w ago
edit: just re-read its about traefik appearantly - so just in case its nginx/wordpress the following would help: something like that should help
services:
wordpress:
volumes:
- ${APP_DATA_DIR}/data/conf.d:/etc/nginx/conf.d
services:
wordpress:
volumes:
- ${APP_DATA_DIR}/data/conf.d:/etc/nginx/conf.d
conf.d :
client_max_body_size 64M
client_max_body_size 64M

Did you find this page helpful?