The preview agent allows the editors and customers to preview the website without publishing it to the production servers. It's designed to run near development and work with the real database. Also, in contrast to the development server, the preview agent only builds the pages on the fly. The CSS, JS files and other assets are prebuilt when there is a push to the working copy (notified through a webhook).
Running the container
Example docker-compose file:
preview: image: dypsilon/fluo-frontend-preview ports: - "8006:8006" volumes: - .:/mnt/working-copy environment: - CONFIG: /mnt/working-copy/frontend/config.js
CONFIG- points to the frontend config [/mnt/working-copy/config.js]
BASE_URL- the base URL of the publisher.