@@ -189,35 +189,59 @@ Command-line download
189189#### Docker CLI
190190
191191``` bash
192- docker run -d --restart=always -p 12345:12345 -v /opt/FileCodeBox/:/app/data --name filecodebox lanol/filecodebox:beta
192+ docker run -d --restart=always -p 12345:12345 -v /opt/FileCodeBox/:/app/data --name filecodebox lanol/filecodebox:latest
193193```
194194
195195#### Docker Compose
196196
197- ``` ymlfix
197+ ``` yml
198198version : " 3"
199- services:s
199+ services :
200200 file-code-box :
201201 image : lanol/filecodebox:latest
202202 volumes :
203203 - fcb-data:/app/data:rw
204204 restart : unless-stopped
205205 ports :
206206 - " 12345:12345"
207+ environment :
208+ - WORKERS=4
209+ - LOG_LEVEL=info
207210volumes :
208211 fcb-data :
209212 external : false
210213` ` `
211214
212- ### Configure reverse proxy (Nginx example)
215+ #### Environment Variables
216+
217+ | Variable | Default | Description |
218+ |----------|---------|-------------|
219+ | ` HOST` | `::` | Listen address, supports IPv4/IPv6 dual-stack |
220+ | `PORT` | `12345` | Service port |
221+ | `WORKERS` | `4` | Number of worker processes, recommended to set to CPU cores |
222+ | `LOG_LEVEL` | `info` | Log level : debug/info/warning/error |
223+
224+ **Custom configuration example:**
225+
226+ ` ` ` bash
227+ docker run -d --restart=always \
228+ -p 12345:12345 \
229+ -v /opt/FileCodeBox/:/app/data \
230+ -e WORKERS=8 \
231+ -e LOG_LEVEL=warning \
232+ --name filecodebox \
233+ lanol/filecodebox:latest
234+ ` ` `
235+
236+ # ## Configure Reverse Proxy (Nginx Example)
213237
214238Please note that the following configurations must be added to ensure proper handling of client IP and proxy requests :
215239
216240` ` ` nginx
217241location / {
218- proxy_set_header X-Real-IP $remote_addr; # Set real client IP
219- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
220- proxy_pass http://localhost:12345 ;
242+ proxy_set_header X-Real-IP $remote_addr; # Set real client IP
243+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
244+ proxy_pass http://localhost:12345;
221245}
222246` ` `
223247
0 commit comments