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