Skip to content

Instantly share code, notes, and snippets.

@Saoming
Created August 12, 2023 11:34
Show Gist options
  • Save Saoming/da6665e4b9f3af359bec68f0556f83c7 to your computer and use it in GitHub Desktop.
Save Saoming/da6665e4b9f3af359bec68f0556f83c7 to your computer and use it in GitHub Desktop.
WordPress Basic Docker Settings
version: '3.1'
services:
wordpress:
image: wordpress:php8.1-apache
ports:
- 8080:80
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: exampleuser
WORDPRESS_DB_PASSWORD: examplepass
WORDPRESS_DB_NAME: exampledb
volumes:
- ./example/wordpress:/var/www/html
- ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
db:
image: mysql:8
environment:
MYSQL_DATABASE: exampledb
MYSQL_USER: exampleuser
MYSQL_PASSWORD: examplepass
MYSQL_RANDOM_ROOT_PASSWORD: '1'
volumes:
- db:/var/lib/mysql
volumes:
db:
@Saoming
Copy link
Author

Saoming commented Aug 12, 2023

uploads.ini

file_uploads = On
memory_limit = 500M
upload_max_filesize = 500M
post_max_size = 500M
max_execution_time = 600

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment