Spaces:
Running
Running
services: | |
fal-openai-proxy: | |
build: . # 构建当前目录下的 Dockerfile | |
container_name: fal_openai_proxy | |
ports: | |
- "13000:3000" # 将主机的 3000 端口映射到容器的 3000 端口 | |
environment: | |
# 在这里设置你的 Fal AI API Key | |
# 或者,为了安全起见,你可以创建一个 .env 文件,并在其中定义 FAL_KEY | |
# 然后取消下面行的注释: | |
# env_file: | |
# - .env | |
FAL_KEY: "" # !! 重要:替换为你的真实 Fal AI Key !! | |
PORT: 3000 # 确保容器内的端口与 Dockerfile 和 server.js 中一致 | |
restart: unless-stopped # 服务失败时自动重启,除非手动停止 | |