update doc

This commit is contained in:
Sakurasan
2023-06-01 18:21:54 +08:00
parent ebe2ae4b19
commit a2e929890b
2 changed files with 31 additions and 0 deletions

28
doc/deploy.md Normal file
View File

@@ -0,0 +1,28 @@
# nginx + docker
自行安装相关环境,省事直接用了宝塔面板
docker-compose.yml
```
version: '3.7'
services:
opencatd:
image: mirrors2/opencatd-open
container_name: opencatd-open
restart: unless-stopped
ports:
- 8088:80
volumes:
- $PWD/db:/app/db
```
nginx配置
```
location /
{
proxy_pass http://localhost:8088;
proxy_set_header Host localhost;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
}
```