-
Notifications
You must be signed in to change notification settings - Fork 151
Expand file tree
/
Copy pathcompose.yaml
More file actions
48 lines (47 loc) · 1.57 KB
/
compose.yaml
File metadata and controls
48 lines (47 loc) · 1.57 KB
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
services:
continue:
# NOTE: Continue.dev has no official server Docker image.
# This service uses nginx:1.27-alpine to host a templated config.yaml
# that IDE clients (VS Code / JetBrains Continue extension) can fetch
# at http://<dream-server>:8890/config.yaml to auto-configure against
# the local LLM API. It also exposes /health for Dream's health checks.
#
# To use:
# 1. Install the Continue extension in VS Code or JetBrains
# 2. Set "remoteConfigServerUrl" in ~/.continue/config.yaml to:
# http://<dream-server-ip>:8890
#
# See: https://docs.continue.dev/reference
image: nginx:1.27-alpine
container_name: dream-continue
restart: unless-stopped
security_opt:
- no-new-privileges:true
environment:
- LLM_API_URL=${LLM_API_URL:-http://dream-llama-server:8080}
- CONTINUE_PORT=${CONTINUE_PORT:-8890}
volumes:
- ./data/continue:/usr/share/nginx/html:rw
- ./config/continue/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./config/continue/entrypoint.sh:/docker-entrypoint.d/50-continue-init.sh:ro
ports:
- "${BIND_ADDRESS:-127.0.0.1}:${CONTINUE_PORT:-8890}:8080"
networks:
- dream-network
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:8080/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
deploy:
resources:
limits:
cpus: '0.25'
memory: 128M
reservations:
cpus: '0.05'
memory: 32M
networks:
dream-network:
external: true