From c8b874612e212c553858f0c11e72b42c09827de5 Mon Sep 17 00:00:00 2001 From: Philipp Le Date: Thu, 29 Oct 2020 00:43:32 +0100 Subject: Added wordpress as read-only Git repo --- .gitignore | 1 + .gitmodules | 3 +++ README.md | 22 ++++++++++++++++++++++ docker-compose.yml | 13 +++++++------ wordpress | 1 + 5 files changed, 34 insertions(+), 6 deletions(-) create mode 100644 .gitignore create mode 100644 README.md create mode 160000 wordpress diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e170339 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/wp-config.php diff --git a/.gitmodules b/.gitmodules index 6579211..e891e95 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,3 +4,6 @@ [submodule "farafeit-theme"] path = farafeit-theme url = https://github.com/pl33/wordpress-farafeit.git +[submodule "wordpress"] + path = wordpress + url = git://github.com/WordPress/WordPress.git diff --git a/README.md b/README.md new file mode 100644 index 0000000..a5dbcf6 --- /dev/null +++ b/README.md @@ -0,0 +1,22 @@ +# Setup + +Preparation: + +``` +git submodule update --init --recursive +touch wordpress/wp-config.php +mkdir -p wordpress/wp-content/uploads +mkdir -p wordpress/wp-content/languages +``` + +Edit configuration: + +``` +nano wp-config.php +``` + +Start: + +``` +docker-compose up -d +``` diff --git a/docker-compose.yml b/docker-compose.yml index e8c4f60..cd814fe 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,13 +19,14 @@ services: ports: - "8000:80" restart: always - environment: - WORDPRESS_DB_HOST: db - WORDPRESS_DB_USER: wordpress - WORDPRESS_DB_PASSWORD: wordpress - WORDPRESS_DB_NAME: feit_website volumes: - - ./run/html:/var/www/html + - ./wordpress:/var/www/html:ro + - ./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 - ./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/wordpress b/wordpress new file mode 160000 index 0000000..5f62cd1 --- /dev/null +++ b/wordpress @@ -0,0 +1 @@ +Subproject commit 5f62cd1566d27be22d961c2a9af31f077efdecf7 -- cgit v1.1