How to change the MAX File size for upload
Closed this issue · 2 comments
Hello, how to change the upload max file size ?
there is my docker-compose file
version: '2'
services:
wikidoc:
image: solidnerd/bookstack:25.2.1
container_name: wikidoc-bookstack
depends_on:
- mysql
restart: always
environment:
- DB_HOST=mysql:3306
- DB_DATABASE=db_secret
- DB_USERNAME=secret
- DB_PASSWORD=secret
#set the APP_ to the URL of bookstack without without a trailing slash APP_URL=https://example.com
- APP_URL=http://HIDDENHIDDEN
- APP_KEY=HIDDENHIDDENHIDDENHIDDENHIDDENHIDDENHIDDENHIDDEN
- FILE_UPLOAD_SIZE_LIMIT=50 # but this does not change anythings
volumes:
- wikidoc-uploads:/var/www/bookstack/public/uploads
- wikidoc-storage-uploads:/var/www/bookstack/storage/uploads
ports:
- "5000:8080"
networks:
- network
mysql:
image: mysql:8.4
container_name: mysql-wikidoc
restart: always
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_DATABASE=db_secret
- MYSQL_USER=secret
- MYSQL_PASSWORD=secret
volumes_from:
- mysql-data-wikidoc
networks:
- network
phpmyadmin-wikidoc:
image: phpmyadmin/phpmyadmin:latest
container_name: phpmyadmin-wikidoc
restart: always
links:
- mysql
ports:
- 5001:80
networks:
- network
environment:
PMA_HOST: mysql-wikidoc
mysql-data-wikidoc:
image: mysql:8.4
container_name: mysql-wikidoc-data
volumes:
- wikidoc-mysql-data:/var/lib/mysql
labels:
- "com.centurylinklabs.watchtower.enable=true"
- "com.centurylinklabs.watchtower.scope=wikidoc"
networks:
- network
command: "true"
networks:
network:
name: wikidoc
driver: bridge
volumes:
wikidoc-mysql-data:
name: wikidoc-mysql-data
external: false
wikidoc-storage-uploads:
name: wikidoc-storage-uploads
external: false
wikidoc-uploads:
name: wikidoc-uploads
external: false
You'll also need to configure the PHP settings, as is mentioned in the upstream documentation. This can be done by mounting in a php.ini file from your local machine, overriding the values configured in the bundled php.ini file.
You'll need to replace the file /usr/local/etc/php/php.ini.
Magnifique, all is working fine now, thank you for your help