Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ node_modules/
bin
*.css.map



/src/theme/style.css
/src/theme/legacy-editor-style.css
9 changes: 9 additions & 0 deletions config/wordpress/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
FROM composer:1.9 AS composer
COPY composer.json /app/composer.json
WORKDIR /app/
RUN composer install

FROM wordpress:5.9.1-php8.1-fpm
COPY --from=composer /app/vendor /srv/vendor

# 1/ Copy composer installed php libs
COPY --from=composer /app/vendor /srv/vendor

# 1/ Install programs
RUN pecl install redis && docker-php-ext-enable redis
Expand Down
5 changes: 5 additions & 0 deletions config/wordpress/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": {
"google/apiclient": "1.1.9"
}
}
2 changes: 1 addition & 1 deletion config/wordpress/php.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
file_uploads = On
memory_limit = 264M
memory_limit = 512M
upload_max_filesize = 6M
post_max_size = 64M
max_execution_time = 600
Expand Down
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ services:
max-size: 10m
max-file: 10
volumes:
- ./bin/stencil-stats.json:/srv/stencil-stats.json
- badgerherald.com-wordpress:/var/www/html
- ./${WORDPRESS_UPLOADS_DIR}:/var/www/html/wp-content/uploads
- ./bin/media-kit:/var/www/html/media-kit
- ./bin/stencil-stats.json:/srv/stencil-stats.json
- ./bin/wp-content/themes:/var/www/html/wp-content/themes/
- ./bin/wp-content/plugins:/var/www/html/wp-content/plugins/
- ./bin/wp-content/mu-plugins:/var/www/html/wp-content/mu-plugins/
Expand Down Expand Up @@ -76,6 +76,8 @@ services:
define('STRIPE_SEMESTERLY_PROD', '${STRIPE_SEMESTERLY_PROD}');
define('RECAPTCHA_SITE_KEY', '${RECAPTCHA_SITE_KEY}');
define('RECAPTCHA_SECRET_KEY', '${RECAPTCHA_SECRET_KEY}');
define('AB_CLIENT_ID', '${AB_CLIENT_ID}');
define('AB_CLIENT_SECRET', '${AB_CLIENT_SECRET}');
define('WP_REDIS_HOST', 'redis');
define('WP_CACHE_KEY_SALT', '${SITE_URL}');
define('DISABLE_WP_CRON', true);
Expand Down
Loading