Skip to content

Commit

Permalink
Add e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
blrchen committed May 2, 2023
1 parent 1effb9b commit d4b3109
Show file tree
Hide file tree
Showing 4 changed files with 120 additions and 0 deletions.
28 changes: 28 additions & 0 deletions e2e/chatbot-ui/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: '3.8'

services:
chatbot-ui:
container_name: chatbot-ui
image: ghcr.io/mckaywrigley/chatbot-ui:main
ports:
- 3000:3000
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
- OPENAI_API_HOST=http://azure-openai-proxy:3000
depends_on:
- azure-openai-proxy
networks:
- vnet
restart: unless-stopped

azure-openai-proxy:
container_name: azure-openai-proxy
build:
context: ../..
networks:
- vnet
restart: unless-stopped

networks:
vnet:
driver: bridge
32 changes: 32 additions & 0 deletions e2e/chatgpt-next-web/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
version: '3.8'

services:
# ChatGPT Next Web service
chatgpt-next-web:
container_name: chatgpt-next-web
image: yidadaa/chatgpt-next-web:latest
ports:
- 3000:3000
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
- BASE_URL=http://azure-openai-proxy:3000
depends_on:
- azure-openai-proxy
networks:
- vnet
restart: unless-stopped

# Azure OpenAI Proxy service
azure-openai-proxy:
container_name: azure-openai-proxy
build:
context: ../..
dockerfile: Dockerfile
networks:
- vnet
restart: unless-stopped

# Networks configuration
networks:
vnet:
driver: bridge
32 changes: 32 additions & 0 deletions e2e/chatgpt-web/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
version: '3.8'

services:
chatgpt-web:
container_name: chatgpt-web
image: chenzhaoyu94/chatgpt-web
ports:
- 3002:3002
environment:
OPENAI_API_KEY: ${OPENAI_API_KEY}
OPENAI_API_BASE_URL: http://azure-openai-proxy:3000
# OPENAI_API_MODEL: gpt-4
AUTH_SECRET_KEY: ""
MAX_REQUEST_PER_HOUR: 1000
TIMEOUT_MS: 60000
depends_on:
- azure-openai-proxy
networks:
- vnet
restart: unless-stopped

azure-openai-proxy:
container_name: azure-openai-proxy
build:
context: ../..
networks:
- vnet
restart: unless-stopped

networks:
vnet:
driver: bridge
28 changes: 28 additions & 0 deletions e2e/gptlite/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: '3.8'

services:
gptlite:
container_name: gptlite
image: blrchen/gptlite:main
ports:
- 3000:3000
environment:
OPENAI_API_KEY: ${OPENAI_API_KEY}
OPENAI_API_BASE_URL: http://azure-openai-proxy:3000
depends_on:
- azure-openai-proxy
networks:
- vnet
restart: unless-stopped

azure-openai-proxy:
container_name: azure-openai-proxy
build:
context: ../..
networks:
- vnet
restart: unless-stopped

networks:
vnet:
driver: bridge

0 comments on commit d4b3109

Please sign in to comment.