Skip to content

Commit e7573f3

Browse files
committed
build(docker): add read/write upload directory to fix deployments
1 parent 937c7f4 commit e7573f3

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ services:
1616
- WORDPRESS_DB_NAME=$MYSQL_DATABASE
1717
volumes:
1818
- ./jquery-wp-content:/var/www/html/jquery-wp-content
19+
- ./uploads:/var/www/html/wp-content/uploads:rw
1920
- ./wp-config.php:/var/www/html/wp-config.php
2021
- ./ssl:/etc/apache2/ssl
2122
- ./apache/.htaccess:/var/www/html/.htaccess

uploads/.gitkeep

Whitespace-only changes.

wp-config-sample.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
// WordPress debugging mode (enables PHP E_NOTICE and WordPress notices)
1717
define( 'WP_DEBUG', (bool) JQUERY_STAGING );
1818

19+
// Set the uploads directory so docker can write to it
20+
define( 'UPLOADS', 'wp-content/uploads' );
21+
1922
/*
2023
* Database Settings
2124
*/

0 commit comments

Comments
 (0)