feat: Initial commit with full deployment architecture and scripts

This commit is contained in:
super committed 2026-02-24 16:45:11 +08:00
commit abb3efe114
96 files changed
+16789

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
version: '3.8'
services:
backend:
build: ./backend
container_name: hxops-backend
restart: always
environment:
- FLASK_APP=run.py
- FLASK_ENV=production
# 注意:在宿主机上通过 host.docker.internal 访问宿主机服务(仅限 Docker Desktop for Mac/Windows)
# Linux 服务器上通常用 172.17.0.1 或宿主机 IP
# 这里预填服务器 IP
- DATABASE_URL=postgresql://postgres:difyai123456@192.168.100.230:5432/hxops_prod
- REDIS_URL=redis://:difyai123456@192.168.100.230:6379/0
- DIFY_API_BASE=http://192.168.100.230:8882/v1
# 请在 .env 文件中配置 DIFY_API_KEY
volumes:
- ./backend:/app
expose:
- "8000"
frontend:
build: ./frontend
container_name: hxops-frontend
restart: always
ports:
- "8881:80"
depends_on:
- backend