Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 881 Bytes

File metadata and controls

34 lines (22 loc) · 881 Bytes

Docker Deployment (Website + Storybook, Optional Render API)

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

Website + Storybook

docker compose -f deploy/compose.website.yml up -d --build

Open:

  • Website: http://localhost:8080/
  • Storybook: http://localhost:8080/storybook/

Website + Storybook + Render API

docker compose -f deploy/compose.website-api.yml up -d --build

This stack reverse-proxies the API under the same origin:

  • POST http://localhost:8080/nivo/charts/<type>
  • GET http://localhost:8080/nivo/r/<id>

Notes

  • Gatsby inlines GATSBY_* variables at build time.
  • SITE_URL is also a build-time value used by Gatsby.