代码拉取完成,页面将自动刷新
version: '3'
services:
gpt-pilot:
environment:
# OPENAI/AZURE/OPENROUTER
- ENDPOINT=OPENAI
- OPENAI_API_KEY=
- OPENAI_ENDPOINT=
# - AZURE_API_KEY=
# - AZURE_ENDPOINT=
# - OPENROUTER_API_KEY=
# In case of Azure endpoint, change this to your deployed model name
- MODEL_NAME=gpt-4
- MAX_TOKENS=8192
- DATABASE_TYPE=postgres
- DB_NAME=pilot
- DB_HOST=postgres
- DB_PORT=5432
- DB_USER=pilot
- DB_PASSWORD=pilot
# Folders which shouldn't be tracked in workspace (useful to ignore folders created by compiler)
# IGNORE_PATHS=folder1,folder2
volumes:
- ~/gpt-pilot-workspace:/usr/src/app/workspace
build:
context: .
dockerfile: Dockerfile
ports:
- "7681:7681"
- "3000:3000"
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres
restart: always
environment:
POSTGRES_USER: pilot
POSTGRES_PASSWORD: pilot
POSTGRES_DB: pilot
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U pilot"]
interval: 30s
timeout: 10s
retries: 3
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。