Created
April 9, 2020 18:56
docker-compose for Wordpress development with Phpmyadmin and custom configuration for memory limit/time limit/upload filesize etc
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: | |
wordpress: | |
container_name: 'Wordpress' | |
image: 'wordpress:latest' | |
depends_on: | |
- mysql | |
environment: | |
- WORDPRESS_DB_PASSWORD=wordpressPS | |
ports: | |
- "80:80" | |
environment: | |
WORDPRESS_DB_HOST: 'mysql:3306' | |
WORDPRESS_DB_USER: wordpressUSR | |
WORDPRESS_DB_PASSWORD: wordpressPS | |
WORDPRESS_DB_NAME: wordpressDB | |
volumes: | |
- "./wordpress:/var/www/html" | |
- "./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini" | |
mysql: | |
container_name: 'mysql' | |
image: 'mysql:5.7' | |
restart: 'always' | |
volumes: | |
- './data/mysql:/var/lib/mysql' | |
- './logs/mysql:/var/log/mysql' | |
ports: | |
- "3306:3306" | |
environment: | |
MYSQL_ROOT_PASSWORD: erev0s | |
MYSQL_DATABASE: wordpressDB | |
MYSQL_USER: wordpressUSR | |
MYSQL_PASSWORD: wordpressPS | |
phpmyadmin: | |
image: phpmyadmin/phpmyadmin | |
container_name: 'png-phpmyadmin' | |
links: | |
- mysql | |
environment: | |
PMA_HOST: mysql | |
PMA_PORT: 3306 | |
ports: | |
- "8080:80" |
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 = 256M | |
upload_max_filesize = 364M | |
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