Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 1.16 KB

README.md

File metadata and controls

39 lines (29 loc) · 1.16 KB

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"