-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (41 loc) · 967 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (41 loc) · 967 Bytes
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
services:
node-proxy:
build: .
container_name: litellm-node-proxy
volumes:
- ./node:/app/node
- ./.env:/app/.env
env_file:
- .env
restart: unless-stopped
healthcheck:
test:
[
"CMD-SHELL",
'node -e "const net=require(''net'');const s=net.connect(4000,()=>{s.end();process.exit(0)});s.on(''error'',()=>process.exit(1));"',
]
interval: 5s
timeout: 3s
retries: 3
start_period: 5s
command: ["node", "/app/node/main.mjs"]
litellm-proxy:
build: .
container_name: litellm-python-proxy
ports:
- "${PORT:-4000}:4000"
entrypoint: ["/bin/bash", "/app/entrypoint.sh"]
volumes:
- ./src:/app/src
- ./.env:/app/.env
- ./entrypoint.sh:/app/entrypoint.sh
env_file:
- .env
restart: unless-stopped
networks:
default:
aliases:
- litellm
networks:
default:
name: litellm-network