Last active
April 10, 2020 07:14
-
-
Save zhang1605/23b8bdcf37fe4a84dd9d92e83fdad63a to your computer and use it in GitHub Desktop.
[docker wordpress max upload size] #docker #wordpress #php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3' | |
| services: | |
| db: | |
| image: mysql:5.7 | |
| volumes: | |
| - db_data:/var/lib/mysql | |
| restart: always | |
| environment: | |
| MYSQL_ROOT_PASSWORD: somewordpress | |
| MYSQL_DATABASE: wordpress | |
| MYSQL_USER: wordpress | |
| MYSQL_PASSWORD: wordpress | |
| wordpress: | |
| depends_on: | |
| - db | |
| image: wordpress:latest | |
| ports: | |
| - "8080:80" | |
| restart: always | |
| environment: | |
| WORDPRESS_DB_HOST: db:3306 | |
| WORDPRESS_DB_USER: wordpress | |
| WORDPRESS_DB_PASSWORD: wordpress | |
| working_dir: /var/www/html | |
| volumes: | |
| - ./wp-content:/var/www/html/wp-content | |
| - ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini | |
| volumes: | |
| db_data: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wget https://gist.githubusercontent.com/zhang1605/23b8bdcf37fe4a84dd9d92e83fdad63a/raw/16da380b58bd54f533510b58b8760528bdb399ed/docker-compose.yaml | |
| wget https://gist.githubusercontent.com/zhang1605/23b8bdcf37fe4a84dd9d92e83fdad63a/raw/c09282bb61db1043abd7a958c5596e99e0a1429c/uploads.ini | |
| mkdir wp-content |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| file_uploads = On | |
| memory_limit = 64M | |
| upload_max_filesize = 64M | |
| post_max_size = 64M | |
| max_execution_time = 600 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment