Docker-compose for Wordpress (REST API) and Nuxt.js
- clone this repo
- cd to folder with repo
- docker-compose up -d
- open
localhost:5000/wp-admin/and install wordpress - open
localhost:5000/wp-admin/options-permalink.phpand update permalink to human readable like/posts/%postname% - make two new pages with slug
mainandblog - open localhost:5000
You can debug your Nuxt app with famous vue-devtools. It's all ready.
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"


