Created
September 25, 2022 16:59
-
-
Save tklee1975/03e85817451cc43af363acc357460043 to your computer and use it in GitHub Desktop.
Improved Wordpress Docker Compose files
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 = 1024M | |
post_max_size = 1024M | |
max_execution_time = 300 | |
max_input_time = 1000 |
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.9" | |
services: | |
# Database Container | |
db: | |
image: mysql:8.0.23 | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: 123456 | |
MYSQL_DATABASE: wpdb | |
MYSQL_USER: wpuser | |
MYSQL_PASSWORD: 123456 | |
ports: | |
- 9306:3306 | |
volumes: | |
- wp-db:/var/lib/mysql | |
# Adminer | |
admin: | |
image: adminer | |
ports: | |
- 9301:8080 | |
# WordPress Container | |
wordpress: | |
image: wordpress | |
ports: | |
- 9300:80 | |
environment: | |
WORDPRESS_DB_HOST: db | |
WORDPRESS_DB_USER: wpuser | |
WORDPRESS_DB_PASSWORD: 123456 | |
WORDPRESS_DB_NAME: wpdb | |
volumes: | |
- ./wordpress:/var/www/html | |
- ./custom.ini:/usr/local/etc/php/conf.d/custom.ini | |
# Volume Setting | |
volumes: | |
wp-db: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment