This repo includes Dockerfiles and docker-compose examples to build and serve:
- the Nivo website (Gatsby static build)
- Storybook at
/storybook/ - optionally, a self-hosted render API proxied under
/nivo/for the/<chart>/api/pages
docker compose -f deploy/compose.website.yml up -d --buildOpen:
- Website:
http://localhost:8080/ - Storybook:
http://localhost:8080/storybook/
docker compose -f deploy/compose.website-api.yml up -d --buildThis stack reverse-proxies the API under the same origin:
POST http://localhost:8080/nivo/charts/<type>GET http://localhost:8080/nivo/r/<id>
- Gatsby inlines
GATSBY_*variables at build time. SITE_URLis also a build-time value used by Gatsby.