Configuring a volume for Save to File System (Linux w/ Docker)
On a Docker deployment, the Save to File System Job action writes files inside the Informer containers. To make those files available on the host (so other tools can use them), each Informer container needs a volume mount to the host's file system. The export is not static: it writes to whichever Informer container runs the action.
Add the volume mount
-
Stop all Informer components:
docker-compose stop -
Delete the current Informer containers (default naming shown):
docker-compose rm informer-apidocker-compose rm informer-querydocker-compose rm informer-schedules -
Add this line to the
volumessection of every Informer service indocker-compose.yml:- ./joboutput:/etc/joboutput- Left of the colon,
./joboutputis the host directory where exports land (this creates ajoboutputdirectory in the Informer install root). The name is up to you;joboutputis a sensible default. - Right of the colon,
/etc/joboutputis where the Save to File System action writes inside the container. The container path must start with/etc(which always exists); the subdirectory after it is customizable.
Each Informer container's
volumesthen looks like:volumes:- ./plugins:/informer/plugins- ./java/plugins:/informer/java/plugins- ./config.json:/informer/config.json- ./joboutput:/etc/joboutput - Left of the colon,
-
Save and start all Informer components:
docker-compose up -d
In Informer, the directory path for the Save to File System Job action is /etc/joboutput. Test the action and confirm the export writes to the host's ./joboutput directory. See Save to File System for more on the action itself.