-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (57 loc) · 1.93 KB
/
Copy pathdocker-compose.yml
File metadata and controls
58 lines (57 loc) · 1.93 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
49
50
51
52
53
54
55
56
57
58
# lillycoder dev sandbox.
#
# Quick start (from this folder):
#
# docker compose up -d
# docker compose exec lillycoder bash
#
# That drops you into /workspace inside the container, with lillycoder
# installed in editable mode (so any edit to lib/lillycoder/ on the host
# is live inside). Run:
#
# lillycoder --api http://host.docker.internal:11434/v1
#
# (or whatever port your local LLM server is on). The container has
# host.docker.internal pointing at your host's gateway by default on
# Docker Desktop; on Linux Docker Engine, the line below adds it
# explicitly.
#
# Files you create from inside (in /workspace) appear under
# ./WORKINGDIR/ on the host. If lillycoder goes haywire, damage stays
# in WORKINGDIR/.
services:
lillycoder:
build:
context: .
dockerfile: Dockerfile
image: lillycoder:dev
volumes:
# Source: hot-reloaded
- .:/opt/lillycoder
# Working area: drop test files here from the host
- ./WORKINGDIR:/workspace
# Persistent config across runs
- ${HOME}/.config/lillycoder:/root/.config/lillycoder
environment:
# If you also use the parent ai-on-device project's models, you can
# point your LLM server at them. Lillycoder itself does not need
# access to model files.
- PYTHONDONTWRITEBYTECODE=1
- PYTHONUNBUFFERED=1
extra_hosts:
# Lets you talk to the host's LLM server (e.g. ollama on the host)
# from inside the container on Linux Docker Engine.
- "host.docker.internal:host-gateway"
working_dir: /workspace
stdin_open: true
tty: true
entrypoint:
- bash
- -c
- |
pip install --quiet -e /opt/lillycoder
echo "🦊 lillycoder dev sandbox"
echo " /workspace is your scratch (mounted from ./WORKINGDIR on host)"
echo " point lillycoder at a host LLM server, e.g.:"
echo " lillycoder --api http://host.docker.internal:11434/v1"
exec bash