-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (43 loc) · 1.1 KB
/
docker-compose.yml
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
networks:
frontend:
external: true
app:
driver: bridge
internal: false
services:
nginx:
image: nginxinc/nginx-unprivileged:alpine
networks:
- app
- frontend
depends_on:
- vllm
ports:
- '8080'
volumes:
- ./.docker/templates:/etc/nginx/templates:ro
- ./index.html:/app/index.html
environment:
NGINX_WEB_ROOT: /app
NGINX_PORT: 8080
NGINX_ALLOW_IP: "${NGINX_ALLOW_IP}"
NGINX_ALLOW_METRICS_IP: "${NGINX_ALLOW_METRICS_IP}"
labels:
- "traefik.enable=true"
- "traefik.docker.network=frontend"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}.rule=Host(`${COMPOSE_DOMAIN}`)"
vllm:
image: itkdev/vllm:cpu
command: "--model ${VLLM_MODEL:-facebook/opt-125m} ${VLLM_OPTIONS:-}"
shm_size: "${SHM_SIZE:-8gb}"
networks:
- app
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "8000"
environment:
- "HUGGING_FACE_HUB_TOKEN=${HUGGING_FACE_HUB_TOKEN}"
- "VLLM_API_KEY=${VLLM_API_KEY}"
volumes:
- ./.docker/data/vllm/:/root/.cache/huggingface:rw