Skip to content

Commit

Permalink
Remove uploads, fix Dockerfile and docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
Defite committed Oct 26, 2018
1 parent 53994c6 commit f07350e
Show file tree
Hide file tree
Showing 16 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Docker-compose for Wordpress (REST API) and Nuxt.js

1) clone this repo
2) cd to folder with repo
3) docker-compose --build
3) docker-compose up -d
4) open `localhost:5000/wp-admin/` and install wordpress
5) open `localhost:5000/wp-admin/options-permalink.php` and update permalink to human readable like `/posts/%postname%`
6) make two new pages with slug `main` and `blog`
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ services:
"npm run dev"
wp:
build: ./wordpress
volumes:
- ./wordpress/plugins:/app/wordpress/wp-content/plugins
depends_on:
- db
environment:
Expand Down
1 change: 1 addition & 0 deletions wordpress/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ RUN apk add --no-cache curl tar \

COPY cmd.sh /usr/local/bin/
COPY uploads.ini /usr/local/etc/php/conf.d/uploads.ini
ADD plugins /app/wordpress/wp-content/plugins
CMD ["cmd.sh"]
7 changes: 0 additions & 7 deletions wordpress/cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,4 @@ sed -i -e "s/password_here/$WORDPRESS_DB_PASSWORD/" wp-config.php
sed -i -e "s/localhost/$WORDPRESS_DB_HOST/" wp-config.php
echo -e "define('FS_METHOD', 'direct');" >> wp-config.php

# Download wp-cli.phar
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar

# Download plugins and activate
# php wp-cli.phar plugin --allow-root install menu-swapper --activate
# php wp-cli.phar plugin --allow-root install wp-rest-api-v2-menus --activate

php -S 0.0.0.0:8080
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed wordpress/uploads/2018/09/0_8ee0d_bd7d94db_XL.jpg
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit f07350e

Please sign in to comment.