mirror of
https://github.com/cheikh2shift/godex.git
synced 2026-10-19 01:29:53 -05:00
62 lines
1.2 KiB
YAML
62 lines
1.2 KiB
YAML
services:
|
|
ollama-proxy:
|
|
image: nginx:alpine
|
|
container_name: ollama-proxy
|
|
restart: unless-stopped
|
|
ports:
|
|
- "11435:11434"
|
|
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
|
|
- godex-config:/godex-home/.godex
|
|
working_dir: /workspace
|
|
stdin_open: true
|
|
tty: true
|
|
restart: unless-stopped
|
|
networks:
|
|
- godex-network
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
tmpfs:
|
|
- /tmp
|
|
- /run
|
|
user: "10001:10001"
|
|
cap_drop:
|
|
- ALL
|
|
cap_add:
|
|
- NET_RAW
|
|
- NET_BIND_SERVICE
|
|
ulimits:
|
|
nproc: 512
|
|
nofile:
|
|
soft: 256
|
|
hard: 256
|
|
|
|
networks:
|
|
godex-network:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
godex-config:
|
|
name: godex-config
|