You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+57Lines changed: 57 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -362,6 +362,63 @@ These two services are very much alike. In fact, `Polyfiller` depends on the lib
362
362
The server is built with support for both HTTP2 and HTTP. The environment variable `HTTP2=[true|false]` decides whether a HTTP2 server will be hosted or not.
363
363
If you use a load balancer and something like `nginx` in a reverse proxy setup, please know that `nginx` doesn't support HTTP2 via its proxy module, so you have to use HTTP1.1 there. Thankfully, it is as easy as setting `HTTP2=false` before launching the server and setting `HTTPS=false`.
364
364
365
+
#### Docker
366
+
367
+
> This guide has been tested in the deployment process of China mirror: https://polyfiller.kaiyuanshe.cn
368
+
369
+
##### Simple container
370
+
371
+
Run shown commands in the Project Root folder:
372
+
373
+
```shell
374
+
docker build -t polyfiller/api-service .
375
+
docker run --name polyfiller -e NODE_ENV=production -p 3000:3000 polyfiller/api-service
376
+
```
377
+
378
+
##### Composed services with Object Storage
379
+
380
+
Install Docker plugins in Cloud Server at first:
381
+
382
+
```shell
383
+
sudo apt install docker-compose
384
+
sudo docker plugin install juicedata/juicefs
385
+
```
386
+
387
+
###### 1. Manual deployment
388
+
389
+
1. Write [JuiceFS environment variables](https://juicefs.com/docs/community/juicefs_on_docker/#using-docker-compose) into `.env` file in the Project Root folder:
0 commit comments