services:
opencode:
image: kangarap/opencode:1.2.27
container_name: opencode
restart: unless-stopped
ports:
- '4096:4096'
environment:
OPENCODE_HOSTNAME: '0.0.0.0'
OPENCODE_PORT: '4096'
# OPENCODE_MDNS: 'true'
# OPENCODE_MDNS_DOMAIN: 'myproject.local'
# OPENCODE_CORS: 'https://example.com,https://foo.example'
# OPENCODE_LOG_LEVEL: 'INFO'
# OPENCODE_PRINT_LOGS: 'true'
volumes:
- ./workspace/xxxx:/workspace/xxxx
- opencode-config:/root/.config/opencode
- opencode-data:/root/.local/share/opencode
- opencode-state:/root/.local/state/opencode
- opencode-cache:/root/.cache/opencode
volumes:
opencode-config:
opencode-data:
opencode-state:
opencode-cache:
Content type
Image
Digest
sha256:9a3b1018b…
Size
66.7 MB
Last updated
about 15 hours ago
docker pull kangarap/opencode:1.18.32