aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Le <philipp-le-prviat@freenet.de>2020-10-29 00:43:32 +0100
committerPhilipp Le <philipp-le-prviat@freenet.de>2020-10-29 00:43:32 +0100
commitc8b874612e212c553858f0c11e72b42c09827de5 (patch)
tree529ca9251f26e17863a553cd625ca505f169fdeb
parente18d7c2edb85d62121f1219a4f420d4f12181bc2 (diff)
downloadfarafeit-wp-docker-compose-c8b874612e212c553858f0c11e72b42c09827de5.zip
farafeit-wp-docker-compose-c8b874612e212c553858f0c11e72b42c09827de5.tar.gz
farafeit-wp-docker-compose-c8b874612e212c553858f0c11e72b42c09827de5.tar.bz2
Added wordpress as read-only Git repo
-rw-r--r--.gitignore1
-rw-r--r--.gitmodules3
-rw-r--r--README.md22
-rw-r--r--docker-compose.yml13
m---------wordpress0
5 files changed, 33 insertions, 6 deletions
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
+Subproject 5f62cd1566d27be22d961c2a9af31f077efdecf