修正构建和启动环境配置

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-05-06 10:28:53 +08:00
parent 1afd0d9f3e
commit fb2b4fad9f
4 changed files with 28 additions and 30 deletions
+10 -2
View File
@@ -5,14 +5,22 @@ services:
context: .
dockerfile: Dockerfile
image: tjwater-agent:latest
env_file:
- .local.env
environment:
NODE_ENV: production
HOST: 0.0.0.0
PORT: 8787
DEEPSEEK_API_KEY: "sk-8941428ad9be4c789becfa8d66534aba"
TJWATER_API_BASE_URL: "http://127.0.0.1:8000"
# OpenCode configurations from smanx/opencode
OPENCODE_HOSTNAME: 0.0.0.0
OPENCODE_PORT: 4096
volumes:
- /home/ubuntu/.config/opencode:/root/.config/opencode
- /home/ubuntu/.local/share/opencode:/root/.local/share/opencode
- ./opencode/agents:/app/.opencode/agents
- ./opencode/skills:/app/.opencode/skills
# - .:/workspace
ports:
- "8787:8787"
# - "4096:4096"
restart: unless-stopped