-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
45 lines (44 loc) · 1.24 KB
/
compose.dev.yaml
File metadata and controls
45 lines (44 loc) · 1.24 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
services:
codex-dev:
build:
context: .
dockerfile: .devcontainer/Dockerfile
args:
DEV_UID: ${SYNAPSE_DEV_UID:-1000}
DEV_GID: ${SYNAPSE_DEV_GID:-1000}
image: synapse-os-codex-dev:dev
command: ["sleep", "infinity"]
environment:
HOME: /home/codex
NPM_CONFIG_CACHE: /home/codex/.cache/npm
UV_CACHE_DIR: /home/codex/.cache/uv
UV_TOOL_DIR: /home/codex/.local/share/uv/tools
XDG_CACHE_HOME: /home/codex/.cache
XDG_STATE_HOME: /home/codex/.local/state
XDG_DATA_HOME: /home/codex/.local/share
GITHUB_PERSONAL_ACCESS_TOKEN: ${GITHUB_PERSONAL_ACCESS_TOKEN:-}
GITHUB_TOKEN: ${GITHUB_TOKEN:-}
user: "${SYNAPSE_DEV_UID:-1000}:${SYNAPSE_DEV_GID:-1000}"
volumes:
- .:/workspace
- codex-home:/home/codex/.codex
- codex-cache:/home/codex/.cache
- codex-state:/home/codex/.local/state
- codex-data:/home/codex/.local/share
working_dir: /workspace
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
read_only: true
init: true
stdin_open: true
tty: true
tmpfs:
- /tmp:size=268435456,mode=1777
- /run:size=16777216,mode=755
volumes:
codex-home:
codex-cache:
codex-state:
codex-data: