feat: thumbnails : part1
This commit is contained in:
@@ -57,6 +57,7 @@ services:
|
||||
- "7080:8080"
|
||||
volumes:
|
||||
- ${LIBRARIES_HOST_PATH:-../libraries}:/libraries
|
||||
- ${THUMBNAILS_HOST_PATH:-../data/thumbnails}:/data/thumbnails
|
||||
depends_on:
|
||||
migrate:
|
||||
condition: service_completed_successfully
|
||||
@@ -80,6 +81,7 @@ services:
|
||||
- "7081:8081"
|
||||
volumes:
|
||||
- ${LIBRARIES_HOST_PATH:-../libraries}:/libraries
|
||||
- ${THUMBNAILS_HOST_PATH:-../data/thumbnails}:/data/thumbnails
|
||||
depends_on:
|
||||
migrate:
|
||||
condition: service_completed_successfully
|
||||
|
||||
5
infra/migrations/0009_add_thumbnails.sql
Normal file
5
infra/migrations/0009_add_thumbnails.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
ALTER TABLE books ADD COLUMN IF NOT EXISTS thumbnail_path TEXT;
|
||||
|
||||
INSERT INTO app_settings (key, value) VALUES
|
||||
('thumbnail', '{"enabled": true, "width": 300, "height": 400, "quality": 80, "format": "webp", "directory": "/data/thumbnails"}')
|
||||
ON CONFLICT (key) DO UPDATE SET value = '{"enabled": true, "width": 300, "height": 400, "quality": 80, "format": "webp", "directory": "/data/thumbnails"}'::jsonb;
|
||||
Reference in New Issue
Block a user