Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

fix: use quotes outside of key=value in docker-compose.yml fix: set HOST=0.0.0.0 by default in api's dockerfile

Wentao Lyu16c958905846
diff --git a/api/Dockerfile b/api/Dockerfile
index fd21cf4d1a..b861217beb 100644
--- a/api/Dockerfile
+++ b/api/Dockerfile
@@ -8,6 +8,8 @@ RUN npm install
COPY . /api/
# Make port 3080 available to the world outside this container
EXPOSE 3080
+# Expose the server to 0.0.0.0
+ENV HOST=0.0.0.0
# Run the app when the container launches
CMD ["npm", "start"]
diff --git a/docker-compose.yml b/docker-compose.yml
index 83fa98fd21..f20d03c1e4 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -17,11 +17,11 @@ services:
image: node-api
restart: always
environment:
- - PORT=3080
- - MONGO_URI=mongodb://mongodb:27017/chatgpt-clone
- - OPENAI_KEY=""
- - CHATGPT_TOKEN=""
- - BING_TOKEN=""
+ - "PORT=3080"
+ - "MONGO_URI=mongodb://mongodb:27017/chatgpt-clone"
+ - "OPENAI_KEY="
+ - "CHATGPT_TOKEN="
+ - "BING_TOKEN="
ports:
- "9000:3080"
volumes: