Files
syops/docker-compose.yml
T

32 lines
872 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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