Skip to content

Docker containers with Wordpress (REST API) and Nuxt.js

License

Notifications You must be signed in to change notification settings

Defite/nuxt-wp-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"