Skip to content

[Enhancement] - Installation via Docker / Docker Compose#183

Closed
dylanrhysscott wants to merge 2 commits intoBookStackApp:releasefrom
dylanrhysscott:release
Closed

[Enhancement] - Installation via Docker / Docker Compose#183
dylanrhysscott wants to merge 2 commits intoBookStackApp:releasefrom
dylanrhysscott:release

Conversation

@dylanrhysscott
Copy link

Hi Dan @ssddanbrown ,

I've forked this project to dockerise it on the recommendation of Jonathan Tawn. I thought I'd chuck a pull request for it. This is for the release branch due to the need for a manifest.json. However these changes will allow Bookstack to be built and deployed in a single command making the process a lot easier

With Docker

Docker - https://www.docker.com/

  • Build the image by running docker build -t bookstack .
  • Create a DB container by running docker run -d --name mysql -e MYSQL_DATABASE=bookstack -e MYSQL_ROOT_PASSWORD=root mysql
  • Create a Bookstack container by running ```docker run -d --name bookstack -e DBNAME=bookstack -p 80:80 --link mysql:mysql bookstack

The install will be available on http://localhost

With Docker Compose

Docker Compose - https://docs.docker.com/compose/

  • Run docker-compose up

Configuration

  • All of the envs for Bookstack can be configured by editing the example .env file prior to build. With the exception of the database details. These are handled at run time
  • The database names and passwords can be configured my passing different env variables from the commands or by editing docker-compose.yml. They must be consistent between the two containers to work correctly

Base Images used

Autobuilds

Autobuilds can be configured for your project by leveraging Dockerhub - https://hub.docker.com/

Looking forward to your feedback!

Cheers

Dylan

@dylanrhysscott
Copy link
Author

Closing PR as missing some deps will correct and reopen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant