nuxt-wp-docker
Docker-compose for Wordpress (REST API) and Nuxt.js
Local install
- 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.php
and update permalink to human readable like/posts/%postname%
- make two new pages with slug
main
andblog
- open localhost:5000
Development
You can debug your Nuxt app with famous vue-devtools. It's all ready.
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"