@@ -72,6 +72,7 @@ This nginx proxy comes with three predefined configurations:
7272
7373- Proxy
7474- Next.js
75+ - Storybook
7576- Drupal
7677
7778# ## Proxy
@@ -114,6 +115,27 @@ environment:
114115 NGINX_PROXY_PASS: http://app:3000
115116` ` `
116117
118+ # ## Storybook
119+
120+ Storybook is like the proxy configuration but also forwards WebSocket
121+ connections on the paths `/__webpack-hmr` and
122+ ` /storybook-server-channel` .
123+
124+ ` ` ` yaml
125+ image: ghcr.io/reload/https-proxy:storybook
126+ ` ` `
127+
128+ See the configuration details in
129+ [`context/storybook/etc/nginx/templates/default.conf.template`](context/storybook/etc/nginx/templates/default.conf.template).
130+
131+ Use can use the following configuration in your `docker-compose.yml` :
132+
133+ ` ` ` yaml
134+ environment:
135+ NGINX_DOCUMENT_ROOT: /var/www/web
136+ NGINX_PROXY_PASS: http://app:6006
137+ ` ` `
138+
117139# ## Drupal
118140
119141Drupal is a configuration that forwards requests to a Drupal
@@ -162,5 +184,6 @@ include include.d/ssl.conf;
162184> which we have used for most of our projects.
163185>
164186> The new approach is smaller (due to using nginx), more inline with
165- > current production hosting practice (nginx, again), also supports
166- > Next.js, and should be easier to maintain and keep up-to-date.
187+ > current production hosting practice (nginx, again), should be easier
188+ > to maintain and keep up-to-date, and also supports Next.js,
189+ > Storybook, and generic proxies.
0 commit comments