Created
August 30, 2019 21:01
-
-
Save f4rx/45f4a2bd43b61462856d28b492ab6b1b to your computer and use it in GitHub Desktop.
BookStack Docker 1 db, 2 www
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apt-get update | |
| apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -y | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - | |
| add-apt-repository \ | |
| "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
| $(lsb_release -cs) \ | |
| stable" | |
| apt-get update | |
| apt-get install docker-ce docker-ce-cli containerd.io |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run -d -p 80:80 \ | |
| -e DB_HOST=INTERNAL_DB_IP:3306 \ | |
| -e DB_DATABASE=bookstack \ | |
| -e DB_USERNAME=bookstack \ | |
| -e DB_PASSWORD=secret \ | |
| solidnerd/bookstack:0.26.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run -d -p INTERNAL_IP:3306:3306 \ | |
| -e MYSQL_ROOT_PASSWORD=secret \ | |
| -e MYSQL_DATABASE=bookstack \ | |
| -e MYSQL_USER=bookstack \ | |
| -e MYSQL_PASSWORD=secret \ | |
| --name="bookstack_db" \ | |
| mysql:5.7.21 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment