diff options
| author | Philipp Le <philipp-le-prviat@freenet.de> | 2020-11-03 00:03:49 +0100 |
|---|---|---|
| committer | Philipp Le <philipp-le-prviat@freenet.de> | 2020-11-03 00:03:49 +0100 |
| commit | 95d2a990f42f49d0488bf67f8d4609486dbbb9f6 (patch) | |
| tree | 5766d874412c8296412259f3d3b2226796b6cca9 | |
| parent | c8b874612e212c553858f0c11e72b42c09827de5 (diff) | |
| download | farafeit-wp-docker-compose-95d2a990f42f49d0488bf67f8d4609486dbbb9f6.zip farafeit-wp-docker-compose-95d2a990f42f49d0488bf67f8d4609486dbbb9f6.tar.gz farafeit-wp-docker-compose-95d2a990f42f49d0488bf67f8d4609486dbbb9f6.tar.bz2 | |
Got plugin installation working
| -rw-r--r-- | README.md | 4 | ||||
| -rw-r--r-- | docker-compose.yml | 29 | ||||
| -rwxr-xr-x | prepare.sh | 42 |
3 files changed, 66 insertions, 9 deletions
@@ -4,9 +4,7 @@ Preparation: ``` git submodule update --init --recursive -touch wordpress/wp-config.php -mkdir -p wordpress/wp-content/uploads -mkdir -p wordpress/wp-content/languages +sudo ./prepare.sh ``` Edit configuration: diff --git a/docker-compose.yml b/docker-compose.yml index cd814fe..39cd18d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,13 +20,30 @@ services: - "8000:80" restart: always volumes: - - ./wordpress:/var/www/html:ro + - ./run/html:/var/www/html:rw - ./wp-config.php:/var/www/html/wp-config.php:ro - - ./run/wp-content/plugins:/var/www/html/wp-content/plugins:rw - - ./wordpress/wp-content/plugins/index.php:/var/www/html/wp-content/plugins/index.php:ro - - ./wordpress/wp-content/plugins/hello.php:/var/www/html/wp-content/plugins/hello.php:ro - - ./run/wp-content/uploads:/var/www/html/wp-content/uploads:rw - - ./run/wp-content/languages:/var/www/html/wp-content/languages:rw + - ./run/wordpress/wp-admin:/var/www/html/wp-admin:ro + - ./run/wp-content:/var/www/html/wp-content:rw + - ./run/wordpress/wp-includes:/var/www/html/wp-includes:ro + - ./run/wordpress/index.php:/var/www/html/index.php:ro + - ./run/wordpress/license.txt:/var/www/html/license.txt:ro + - ./run/wordpress/readme.html:/var/www/html/readme.html:ro + - ./run/wordpress/wp-activate.php:/var/www/html/wp-activate.php:ro + - ./run/wordpress/wp-blog-header.php:/var/www/html/wp-blog-header.php:ro + - ./run/wordpress/wp-comments-post.php:/var/www/html/wp-comments-post.php:ro + - ./run/wordpress/wp-cron.php:/var/www/html/wp-cron.php:ro + - ./run/wordpress/wp-links-opml.php:/var/www/html/wp-links-opml.php:ro + - ./run/wordpress/wp-load.php:/var/www/html/wp-load.php:ro + - ./run/wordpress/wp-login.php:/var/www/html/wp-login.php:ro + - ./run/wordpress/wp-mail.php:/var/www/html/wp-mail.php:ro + - ./run/wordpress/wp-settings.php:/var/www/html/wp-settings.php:ro + - ./run/wordpress/wp-signup.php:/var/www/html/wp-signup.php:ro + - ./run/wordpress/wp-trackback.php:/var/www/html/wp-trackback.php:ro + - ./run/wordpress/xmlrpc.php:/var/www/html/xmlrpc.php:ro + - ./run/wordpress/wp-content/index.php:/var/www/html/wp-content/index.php:ro + - ./run/wordpress/wp-content/plugins/index.php:/var/www/html/wp-content/plugins/index.php:ro + - ./run/wordpress/wp-content/plugins/hello.php:/var/www/html/wp-content/plugins/hello.php:ro + - ./run/wordpress/wp-content/themes:/var/www/html/wp-content/themes:ro - ./farafeit-theme:/var/www/html/wp-content/themes/farafeit:ro - ./bootstrap-file-list:/var/www/html/wp-content/plugins/bootstrap-file-list:ro diff --git a/prepare.sh b/prepare.sh new file mode 100755 index 0000000..b0ebb48 --- /dev/null +++ b/prepare.sh @@ -0,0 +1,42 @@ +#!/bin/bash + +mkdir -p run/wordpress +cp -r wordpress/* run/wordpress/ +chown -R 33:33 run/wordpress + +mkdir -p run/html +chown -R 33:33 run/html + +mkdir -p run/html/wp-admin +mkdir -p run/html/wp-content +mkdir -p run/html/wp-includes +touch run/html/index.php +touch run/html/license.txt +touch run/html/readme.html +touch run/html/wp-activate.ph +touch run/html/wp-blog-header.php +touch run/html/wp-comments-post.php +touch run/html/wp-cron.php +touch run/html/wp-links-opml.php +touch run/html/wp-load.php +touch run/html/wp-login.php +touch run/html/wp-mail.php +touch run/html/wp-settings.php +touch run/html/wp-signup.php +touch run/html/wp-trackback.php +touch run/html/xmlrpc.php + +touch run/html/wp-config.php + +mkdir -p run/wp-content +touch run/wp-content/index.php +mkdir -p run/wp-content/plugins +chown -R 33:33 run/wp-content +touch run/wp-content/plugins/index.php +touch run/wp-content/plugins/hello.php + +mkdir -p run/wp-content/plugins/bootstrap-file-list + +mkdir -p run/wp-content/themes/ +mkdir -p run/wordpress/wp-content/themes/farafeit + |
