diff --git a/deploy/prod/docker-compose.yml b/deploy/prod/docker-compose.yml index 7df4cb5..e825a32 100644 --- a/deploy/prod/docker-compose.yml +++ b/deploy/prod/docker-compose.yml @@ -18,3 +18,6 @@ services: ports: # change the left side (or set NTP_PORT in .env) when 8081 is taken; use 127.0.0.1: when the proxy runs on this host - "127.0.0.1:${NTP_PORT:-8081}:8080" + volumes: + # attachments (trucks / trailers / drivers): the host folder /mnt/NTPFiles is read and written by the API at the same path + - /mnt/NTPFiles:/mnt/NTPFiles diff --git a/src/NTP.Api/appsettings.Production.json b/src/NTP.Api/appsettings.Production.json index a3081ff..e3d212e 100644 --- a/src/NTP.Api/appsettings.Production.json +++ b/src/NTP.Api/appsettings.Production.json @@ -20,5 +20,15 @@ "Oracle": { "MinPoolSize": 5, "MaxPoolSize": 100 + }, + + // Attachments of trucks / trailers / drivers are read and written on the shared folder /mnt/NTPFiles + // (mounted into the container, see deploy/prod/docker-compose.yml). Stored files go to + // /ntp_trucks_files | ntp_trailers_files | ntp_drivers_files; uploads wait in TempUploadPath until Save. + "Grains": { + "Registry": { + "UploadedFilesPath": "/mnt/NTPFiles", + "TempUploadPath": "/mnt/NTPFiles/tempuploadedfiles" + } } } diff --git a/web/src/features/grains-orders/meta/orders.tsx b/web/src/features/grains-orders/meta/orders.tsx index b1b0283..9abef77 100644 --- a/web/src/features/grains-orders/meta/orders.tsx +++ b/web/src/features/grains-orders/meta/orders.tsx @@ -62,8 +62,8 @@ export const tenderOrderGrid = (h: OrderGridHandlers): GridMeta => key: 'mobileShift', header: { en: 'Shift', ar: 'الفترة' }, hideBelow: 'md', render: (r, { lang }) => (r.mobileShift && shiftLabels[r.mobileShift] ? shiftLabels[r.mobileShift]![lang] : ''), }, - { key: 'quantity', header: { en: 'Trucks', ar: 'عدد السيارات' }, format: 'number', align: 'end' }, - { key: 'usedQuota', header: { en: 'Used', ar: 'المستخدم' }, format: 'number', align: 'end', hideBelow: 'sm' }, + { key: 'quantity', header: { en: 'Trucks', ar: 'عدد السيارات' }, format: 'number', align: 'center' }, + { key: 'usedQuota', header: { en: 'Used', ar: 'المستخدم' }, format: 'number', align: 'center', hideBelow: 'sm' }, { key: 'isTipper', header: { en: 'Tipper', ar: 'قلاب' }, format: 'boolean', hideBelow: 'lg' }, { key: 'type', header: { en: 'Individuals / companies', ar: 'افراد - شركات' }, hideBelow: 'md',