mirror of
https://github.com/open-webui/open-webui
synced 2025-04-28 18:21:48 +00:00
Dockerfile update for GCP 8
This commit is contained in:
parent
87571343a3
commit
48b06e607c
8
.github/workflows/docker-build-push.yml
vendored
8
.github/workflows/docker-build-push.yml
vendored
@ -64,8 +64,8 @@ jobs:
|
||||
host: ${{ secrets.PROD_EC2_HOST }}
|
||||
username: ${{ secrets.PROD_EC2_USERNAME }}
|
||||
key: ${{ secrets.PROD_EC2_SSH_KEY }}
|
||||
source: "docker-compose.yaml"
|
||||
target: "~/beyond-the-loop"
|
||||
source: "docker-compose-prod.yaml"
|
||||
target: "~/beyond-the-loop/docker-compose.yaml"
|
||||
overwrite: true
|
||||
|
||||
- name: Copy litellm-config file to EC2
|
||||
@ -105,8 +105,8 @@ jobs:
|
||||
host: ${{ secrets.STAGING_EC2_HOST }}
|
||||
username: ${{ secrets.STAGING_EC2_USERNAME }}
|
||||
key: ${{ secrets.STAGING_EC2_SSH_KEY }}
|
||||
source: "docker-compose.yaml"
|
||||
target: "~/beyond-the-loop"
|
||||
source: "docker-compose-staging.yaml"
|
||||
target: "~/beyond-the-loop/docker-compose.yaml"
|
||||
overwrite: true
|
||||
|
||||
- name: Copy litellm-config file to EC2
|
||||
|
38
docker-compose-staging.yaml
Normal file
38
docker-compose-staging.yaml
Normal file
@ -0,0 +1,38 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
litellm:
|
||||
container_name: litellm
|
||||
image: ghcr.io/berriai/litellm:main-v1.61.7
|
||||
env_file:
|
||||
- .env
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "4000:4000"
|
||||
volumes:
|
||||
- ./litellm-config.yaml:/app/config.yaml
|
||||
command: ["--config", "/app/config.yaml", "--port", "4000"]
|
||||
extra_hosts:
|
||||
- host.docker.internal:host-gateway
|
||||
|
||||
beyond-the-loop:
|
||||
image: ghcr.io/philszalay/beyond-the-loop:staging
|
||||
container_name: beyond-the-loop
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- OPENAI_API_BASE_URL=http://litellm:4000/v1
|
||||
- DATABASE_URL=sqlite:////app/backend/data/database.sqlite
|
||||
volumes:
|
||||
- ./backend/data:/app/backend/data
|
||||
depends_on:
|
||||
- litellm
|
||||
ports:
|
||||
- "8080:8080"
|
||||
extra_hosts:
|
||||
- host.docker.internal:host-gateway
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
beyond-the-loop: {}
|
||||
litellm: {}
|
Loading…
Reference in New Issue
Block a user