-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (50 loc) · 1.15 KB
/
docker-compose.yml
File metadata and controls
52 lines (50 loc) · 1.15 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
services:
ollama-proxy:
image: nginx:alpine
container_name: ollama-proxy
restart: unless-stopped
command: ["nginx", "-g", "daemon off;"]
environment:
- NGINX_ENTRYPOINT_QUIET_LOGS=1
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
networks:
- godex-network
depends_on:
- godex
extra_hosts:
- "host.docker.internal:host-gateway"
godex:
build:
context: .
image: godex-sandbox:latest
container_name: godex
environment:
- HOME=/godex-home
# Optional: set to auto-select provider after wizard creates config
# - CODEX_PROVIDER_NAME=my-local-identifier
volumes:
- ${WORKSPACE_DIR:-.}:/workspace
- ${HOME}/.godex:/godex-home/.godex
working_dir: /workspace
stdin_open: true
tty: true
restart: unless-stopped
networks:
- godex-network
logging:
driver: "none"
security_opt:
- no-new-privileges:true
tmpfs:
- /tmp
- /run
user: "${USER_ID:-1000}:${GROUP_ID:-1000}"
cap_drop:
- ALL
cap_add:
- NET_RAW
- NET_BIND_SERVICE
networks:
godex-network:
driver: bridge