Add docker development environment - #1504
ssddanbrown merged 3 commits into
Conversation
|
I would love to see something like this. Currently trying to spin the project up to create a PR and test it has been a lot more complex than it really should be. |
|
For now, you can just check out my branch, make changes and then check out It would be great if @ssddanbrown might take a look at this. |
For now I'm just running a mysql container via docker, then running the frontend build and app on my local machine (app via |
|
Sorry for my really late response on this and thanks for offering this pull request @timoschwarzer. I can definitely see how this would be valuable to those wanting to help develop BookStack. There's a few things I'd want to tweak before merging into master though:
|
|
Thank you for your response :) I think these are all valid points I agree with. I didn't notice that the migrations create an admin user, that's why I added that seed. Is it documented somewhere? I'll work on this the next 1-2 weeks then. |
Done. Settings are now set via environment variables inside
Same.
Removed the dummy content seeder and added docs for the initial admin user.
I disagree with this one.
|
|
Thanks for the changes. In regards to the directory bits, I was thinking about more of a middle ground, With a structure like this: That way it keeps docker references out of the top-level and should allow someone to just |
|
I've made the changes you requested but I have to admit that I'm not happy with the
Quoting from the Docker page: "Compose has traditionally been focused on development and testing workflows", and you cannot throw this |
|
Note to myself @timoschwarzer: Fix CI tests |
|
Thanks @timoschwarzer, Now merged. I moved the compose file back into the root folder, I thought your reasonings were fair and think I was being overly paranoid. . |
|
I see you fixed/reverted the tests, too. Thanks! :) |
I wanted to make a small contribution but I didn't want to setup a database server on my local machine so I ended up making this PR.
My goal was to make getting started with development as easy and straightforward as possible.
This PR adds a complete Docker Compose development environment.
Improvements:
DummyContentSeederreadme.md)docker-compose upto spin up the entire development environment (php server, mysql server, npm run watch)