diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | .gitmodules | 3 | ||||
| -rw-r--r-- | README.md | 22 | ||||
| -rw-r--r-- | docker-compose.yml | 13 | ||||
| m--------- | wordpress | 0 |
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 |
