Skip to content

Commit ee50560

Browse files
committed
chore: update readme example
1 parent 5ea5228 commit ee50560

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/receiptio-server/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ It mainly utilizes the `GS v 0` printer command set, to print images, html or ma
2424
| `PRINT_IMAGE_RASTER_CACHE_MAX` | int | `20` | Maximum number of image rasters to keep in the cache. |
2525
| `PRINT_HTML_PNG_CACHE_MAX` | int | `20` | Maximum number of HTML PNGs to keep in the cache. |
2626
| `STATIC_CACHE_ENABLED` | boolean | `false` | Enable file, instead of in-memory caching. |
27-
| `STATIC_CACHE_DIR` | string | `/var/cache/receiptio`| Directory for static cache files. Must be writable by the container user. |
27+
| `STATIC_CACHE_DIR` | string | `./cache` | Directory for static cache files. Must be writable by the container user. |
2828
| `STATIC_CACHE_LIFETIME` | int | `604800` | Lifetime of static cache files in seconds (default: 7 days). |
2929

3030
\* = 0=8-dot single, 1=8-dot double, 32=24-dot single, 33=24-dot double.
@@ -42,7 +42,13 @@ services:
4242
- 3000:3000
4343
environment:
4444
TARGET_DEVICE: /dev/usb/lp2
45+
STATIC_CACHE_DIR: /cache
4546
devices:
4647
- /dev/usb/lp2:/dev/usb/lp2
48+
volumes:
49+
- cache:/cache
4750
privileged: true
51+
52+
volumes:
53+
cache:
4854
```

0 commit comments

Comments
 (0)