Skip to content

Commit 53a1a65

Browse files
committed
Add storybook
1 parent 870a3ba commit 53a1a65

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,12 @@ FROM proxy AS nextjs
4242
COPY /nextjs /
4343

4444
ENV NGINX_PROXY_PASS http://app:3000
45+
46+
##
47+
# Storybook
48+
##
49+
FROM proxy AS storybook
50+
51+
COPY /storybook /
52+
53+
ENV NGINX_PROXY_PASS http://app:6006
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
server {
2+
3+
include include.d/ssl.conf;
4+
5+
root /var/www/web;
6+
7+
location / {
8+
proxy_pass ${NGINX_PROXY_PASS};
9+
}
10+
11+
location /__webpack-hmr {
12+
proxy_pass ${NGINX_PROXY_PASS};
13+
proxy_http_version 1.1;
14+
proxy_set_header Upgrade $http_upgrade;
15+
proxy_set_header Connection "Upgrade";
16+
proxy_set_header Host $host;
17+
}
18+
}

0 commit comments

Comments
 (0)