Skip to content

Commit

Permalink
chore: docker-compose部署方式
Browse files Browse the repository at this point in the history
  • Loading branch information
14790897 committed Feb 27, 2024
1 parent efabb39 commit a31dc81
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: "3.8" # 使用 Docker Compose 文件版本 3.8,根据需要可以更改
services:
paperai:
image: 14790897/paperai:latest
container_name: paperai_app
ports:
- "3000:3000" # 映射宿主机和容器的端口
# environment: # 设置环境变量
# NEXT_PUBLIC_AI_URL: "自定义AI模型地址"
# NEXT_PUBLIC_OPENAI_API_KEY: "自定义API KEY"
restart: unless-stopped # 容器退出时重启策略

0 comments on commit a31dc81

Please sign in to comment.