forked from lidge-jun/opencodex
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
31 lines (29 loc) · 699 Bytes
/
Copy pathcompose.yaml
File metadata and controls
31 lines (29 loc) · 699 Bytes
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
name: opencodex
services:
hub:
image: opencodex:local
build:
context: .
dockerfile: Dockerfile
target: runtime
init: true
read_only: true
environment:
# A custom CODEX_HOME also requires a matching writable volume target below.
CODEX_HOME: /home/bun/.codex
ports:
- "${OPENCODEX_BIND_ADDRESS:-127.0.0.1}:${OPENCODEX_PORT:-10100}:10100"
volumes:
- ocx-state:/home/bun/.opencodex
- codex-state:/home/bun/.codex
tmpfs:
- /tmp:size=64m,mode=1777
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
restart: unless-stopped
stop_grace_period: 30s
volumes:
ocx-state:
codex-state: