diff --git a/docker-compose.yml b/docker-compose.yml index b889631..1911b9b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,6 +20,8 @@ services: WORDPRESS_CONFIG_EXTRA: | define('WP_SITEURL', 'https://www.junisthomsen.de'); define('WP_HOME', 'https://www.junisthomsen.de'); + define('WP_REDIS_HOST', 'redis'); + define('WP_REDIS_PORT', 6379); volumes: - ./wordpress:/var/www/html networks: @@ -38,6 +40,13 @@ services: - ./nginx-config:/etc/nginx/conf.d networks: - wordpress-app + redis: + image: redis:7-alpine + container_name: wp-junisthomsen-20251104-redis + restart: always + command: redis-server --save "" --appendonly no + networks: + - wordpress-app networks: wordpress-app: diff --git a/tools/inst_plugins b/tools/inst_plugins new file mode 100755 index 0000000..4411e5b --- /dev/null +++ b/tools/inst_plugins @@ -0,0 +1,14 @@ +#!/bin/bash + +set -euo pipefail + +dc_wp() { + docker compose exec -u www-data wordpress wp $@ +} + +dc_wp plugin install redis-cache --activate +dc_wp redis enable + +dc_wp plugin install wp-mail-smtp --activate + +echo "Done." >&2