isBatak / nextpress

Headless Wordpress and Next.js monorepo
6 stars 3 forks source link

Use WP-CLI docker image #4

Open dingo-d opened 5 years ago

dingo-d commented 5 years ago

Looking at your docker-compose.yml for backend, I'm not 100% sure why you are using the Dockerfile for this.

Wouldn't an official image suffice + wpcli installation using

  cli:
    image: wordpress:cli
    user: xfs
    volumes:
      - wordpress_data:/var/www/html
      - .:/var/www/html/wp-content/plugins/gutenberg
    depends_on:
      - mysql
      - wordpress

You can look how the compose file looks in the gutenberg repo:

https://github.com/WordPress/gutenberg/blob/master/docker-compose.yml

isBatak commented 5 years ago

I'm using this setup https://github.com/urre/wordpress-nginx-docker-compose it has everything ready for bedrock and it's no-brainer :D I suppose this is a setup with nginx and WordPress image is with apache...