jsreport Docker does not use mounted volumes
-
Hi,
I can run jsreport in a docker but it will not save to setup volumes nor read the jsreport.config.json from the setup volume.compose file:
version: '3' services: jsreport: image: jsreport/jsreport:4.3.1-full ports: - '80:5488' volumes: - './data:/data' - './jsreport.config.json:/jsreport.config.json' restart: unless-stopped
What am i missing?
I want to store all persistent data, templates, assets etc on the volumesMan i feel like a noob!!
TIA!
-
Check this in the docs here
https://jsreport.net/learn/docker#persist-templatesThe volumes should be configured like this
- './data:/app/data' - './jsreport.config.json:/app/jsreport.config.json'
-
Thank you!!!
I was mostly confused that I could mount a file as a file. My brain could not accept that. :)