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
+55Lines changed: 55 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -362,6 +362,61 @@ 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
+
##### Simple container
368
+
369
+
Run shown commands in the Project Root folder:
370
+
371
+
```shell
372
+
docker build -t polyfiller/api-service .
373
+
docker run --name polyfiller -e NODE_ENV=production -p 3000:3000 polyfiller/api-service
374
+
```
375
+
376
+
##### Composed services with Object Storage
377
+
378
+
Install Docker plugins in Cloud Server at first:
379
+
380
+
```shell
381
+
sudo apt install docker-compose
382
+
sudo docker plugin install juicedata/juicefs
383
+
```
384
+
385
+
###### 1. Manual deployment
386
+
387
+
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