Docker-compose for Wordpress (REST API) and Nuxt.js
Branch: master
Clone or download
Defite Fix missing images
Added getByPath, removed all way axios
Latest commit e32e27a Dec 3, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
nginx
nuxt
wordpress Remove uploads, fix Dockerfile and docker-compose Oct 26, 2018
.gitlab-ci.yml Fix gitlab-ci Oct 21, 2018
LICENSE
README.md Remove uploads, fix Dockerfile and docker-compose Oct 26, 2018
docker-compose.yml

README.md

nuxt-wp-docker

Docker-compose for Wordpress (REST API) and Nuxt.js

Main page

Local install

  1. clone this repo
  2. cd to folder with repo
  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
  7. open localhost:5000

Blog

Development

You can debug your Nuxt app with famous vue-devtools. It's all ready.

vue-devtools

Production

To build production version of Nuxt open docker-composer.yml, find nuxt section and in command change to npm run start like this:

nuxt:
    build: ./nuxt
    depends_on:
      - wp
      - db
    networks:
      - flat-network
    restart: always
    command:
      "npm run start"