-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
35 lines (34 loc) · 1.16 KB
/
Copy pathcompose.yaml
File metadata and controls
35 lines (34 loc) · 1.16 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
services:
codex:
image: codex-for-docker:local
build:
context: .
dockerfile: Dockerfile
target: runtime
args:
BUILD_PROFILE: ${CODEX_BUILD_PROFILE:-dev}
CARGO_PROFILE_RELEASE_LTO: ${CODEX_CARGO_PROFILE_RELEASE_LTO:-thin}
CARGO_PROFILE_RELEASE_CODEGEN_UNITS: ${CODEX_CARGO_PROFILE_RELEASE_CODEGEN_UNITS:-16}
stdin_open: true
tty: true
working_dir: /workspace
environment:
CODEX_HOME: /codex-home
HOME: /codex-home
DOCKER_HOST: unix:///docker.sock
CODEX_CONTAINER_DEFAULT_PROVIDER_CONFIG: "1"
CODEX_MODEL_PROVIDER_ID: docker-model-runner-container
CODEX_MODEL_PROVIDER_NAME: Docker Model Runner
CODEX_MODEL_PROVIDER_BASE_URL: http://host.docker.internal:12434/engines/v1
CODEX_DOCKER_MODEL_CONTEXT_HOST: http://host.docker.internal:12434
CODEX_DOCKER_MODEL_CONTEXT_NAME: codex-host
group_add:
- "0"
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ${CODEX_WORKSPACE:-${PWD}}:/workspace
- codex-home:/codex-home
- ${DOCKER_HOST_SOCKET:-${HOME}/.docker/run/docker.sock}:/docker.sock
volumes:
codex-home: