Skip to content

Commit 60b9a1e

Browse files
committed
Made BookStack uploads folder volumable
1 parent 2b48eff commit 60b9a1e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Diff for: docker-compose.yml

+2
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,7 @@ services:
2020
- DB_DATABASE=bookstack
2121
- DB_USERNAME=bookstack
2222
- DB_PASSWORD=secret
23+
volumes:
24+
- ./uploads:/var/www/BookStack/public/uploads
2325
ports:
2426
- "8080:80"

Diff for: docker-entrypoint.sh

+2
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,6 @@ fi
7878

7979
cd /var/www/BookStack/ && php artisan key:generate && php artisan migrate --force
8080

81+
chown -R www-data:www-data /var/www/BookStack/public/uploads && chmod -R 775 /var/www/BookStack/public/uploads
82+
8183
exec apache2-foreground

0 commit comments

Comments
 (0)