visiblevc / wordpress-starter

A slightly less shitty wordpress development workflow
688 stars 167 forks source link

Volume mapping for wordpress /app #161

Closed geeksupport1 closed 4 years ago

geeksupport1 commented 4 years ago

Thanks for sharing this.

PLEASE READ THIS BEFORE POSTING AN ISSUE!

This is a template to make sure you provide us with all the information we will be to help you out. Please take the time to fill detailed issues, it will be faster for us to provide solutions! In the following sections, you should replace the content with your own. The content that is there is just presented as an example.

Overview

The docker-compose file says ./data. but nothing is in the ./data directory.

Upon closer inspection, the WORKDIR is set to /app

docker daemon in WSL working.

=========================================

I later discovered the examples directory contains the updated docker-compose.yml file.

However, wp-content is not mapped to host, so files in wp-content will not be saved upon container crash.

dsifford commented 4 years ago

Having trouble understanding exactly what the issue you're having with this project is, but...

However, wp-content is not mapped to host, so files in wp-content will not be saved upon container crash.

wp-content isn't supposed to be volumed. That's the point of this setup. It keeps the builds ephemeral. The only thing you should volume are things that need to survive teardowns.. So, generally, speaking...