version 1

This commit is contained in:
2025-11-20 19:24:33 +01:00
parent e8c5cfc113
commit 7094a52eb4
2 changed files with 23 additions and 0 deletions

View File

@@ -20,6 +20,8 @@ services:
WORDPRESS_CONFIG_EXTRA: | WORDPRESS_CONFIG_EXTRA: |
define('WP_SITEURL', 'https://www.junisthomsen.de'); define('WP_SITEURL', 'https://www.junisthomsen.de');
define('WP_HOME', 'https://www.junisthomsen.de'); define('WP_HOME', 'https://www.junisthomsen.de');
define('WP_REDIS_HOST', 'redis');
define('WP_REDIS_PORT', 6379);
volumes: volumes:
- ./wordpress:/var/www/html - ./wordpress:/var/www/html
networks: networks:
@@ -38,6 +40,13 @@ services:
- ./nginx-config:/etc/nginx/conf.d - ./nginx-config:/etc/nginx/conf.d
networks: networks:
- wordpress-app - 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: networks:
wordpress-app: wordpress-app:

14
tools/inst_plugins Executable file
View File

@@ -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