-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
55 lines (53 loc) · 1.54 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
services:
bedrock-gateway:
build: ./bedrock-gateway
environment:
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- AWS_SESSION_TOKEN=${AWS_SESSION_TOKEN}
- AWS_REGION=${AWS_REGION}
- DEFAULT_MODEL=anthropic.claude-3-5-sonnet-20240620-v1:0
- BEDROCK_GW_API_KEY=bedrock
- DEBUG=false
ports:
- 8000:80
restart: unless-stopped
webui-db:
image: postgres:13
environment:
- POSTGRES_DB=myapp_db
- POSTGRES_USER=myapp_user
- POSTGRES_PASSWORD=myapp_pass
ports:
- 5431:5431
command: -p 5431
volumes:
- ${HOME}/.bedrockui/postgres/open-webui:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U myapp_user -d myapp_db -p 5431" ]
interval: 3s
timeout: 5s
retries: 5
restart: always
open-webui:
image: ghcr.io/open-webui/open-webui:latest
container_name: open-webui
depends_on:
- webui-db
- bedrock-gateway
ports:
- 3000:8080
volumes:
- ${HOME}/.bedrockui/open-webui/data:/app/backend/data
environment:
- OPENAI_API_BASE_URL=http://host.docker.internal:8000/api/v1
- OPENAI_API_KEY=bedrock
- WEBUI_SECRET_KEY=bedrock
- WEBUI_DB_HOST=webui-db
- WEBUI_AUTH=False
- ENABLE_LOGIN_FORM=False
- ENABLE_OLLAMA_API=False
- DATABASE_URL=postgresql://myapp_user:myapp_pass@webui-db:5431/myapp_db
extra_hosts:
- host.docker.internal:host-gateway
restart: unless-stopped