Creates an environment to test a local BookStack instance within a docker container.
Created
October 6, 2017 19:43
-
-
Save ssddanbrown/650912801a10926a57f4d96d17a791bd to your computer and use it in GitHub Desktop.
BookStack Docker Compose Dev
This file contains 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
version: '3' | |
services: | |
web: | |
image: "ssddanbrown/docker-ubuntu-php7" | |
ports: | |
- "8080:8080" | |
depends_on: | |
- "database" | |
volumes: | |
- ./:/app | |
command: ["/app/up.sh"] | |
database: | |
image: "mariadb:latest" | |
environment: | |
- MYSQL_DATABASE=bookstack | |
- MYSQL_USER=bookstack | |
- MYSQL_PASSWORD=bookstack | |
- MYSQL_ROOT_PASSWORD=bookstack |
This file contains 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
#!/bin/bash | |
set -e | |
host="$1" | |
cd /app | |
composer install --no-scripts | |
sleep 2s | |
php artisan -nv migrate | |
echo "Migrated, Starting server" | |
cd /app/public | |
php -S 0.0.0.0:8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment