version 1
This commit is contained in:
@@ -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:
|
||||
|
||||
14
tools/inst_plugins
Executable file
14
tools/inst_plugins
Executable 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
|
||||
Reference in New Issue
Block a user