From 60b9a1e1c0de3d0bd1858e140e15b902f1a00bb9 Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Thu, 18 Aug 2016 18:29:43 +0100 Subject: [PATCH] Made BookStack uploads folder volumable --- docker-compose.yml | 2 ++ docker-entrypoint.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 9135ca9..34fb814 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,5 +20,7 @@ services: - DB_DATABASE=bookstack - DB_USERNAME=bookstack - DB_PASSWORD=secret + volumes: + - ./uploads:/var/www/BookStack/public/uploads ports: - "8080:80" diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 1d0d090..b84f433 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -78,4 +78,6 @@ fi cd /var/www/BookStack/ && php artisan key:generate && php artisan migrate --force +chown -R www-data:www-data /var/www/BookStack/public/uploads && chmod -R 775 /var/www/BookStack/public/uploads + exec apache2-foreground