Skip to content

Instantly share code, notes, and snippets.

@ssddanbrown
Created October 6, 2017 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssddanbrown/650912801a10926a57f4d96d17a791bd to your computer and use it in GitHub Desktop.
Save ssddanbrown/650912801a10926a57f4d96d17a791bd to your computer and use it in GitHub Desktop.
BookStack Docker Compose Dev

Docker Compose Dev Scripts

Creates an environment to test a local BookStack instance within a docker container.

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
#!/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