-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (35 loc) · 1.34 KB
/
docker-compose.yml
File metadata and controls
35 lines (35 loc) · 1.34 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
services:
remote:
network_mode: host
build:
context: .
dockerfile: Dockerfile
args:
OPENCODE_REMOTE_BUILD_ID: ${OPENCODE_REMOTE_BUILD_ID:-local}
container_name: opencode-remote
restart: unless-stopped
environment:
OPENCODE_SERVER_URL: ${OPENCODE_SERVER_URL:-http://127.0.0.1:4096}
STORAGE_DB_PATH: ${STORAGE_DB_PATH:-/app/data/opencode-remote.db}
SECURITY_OWNER_NUMBER: ${SECURITY_OWNER_NUMBER:-}
TELEGRAM_ENABLED: ${TELEGRAM_ENABLED:-true}
TELEGRAM_BOT_TOKEN: ${TELEGRAM_BOT_TOKEN:-}
TELEGRAM_OWNER_USER_ID: ${TELEGRAM_OWNER_USER_ID:-}
TELEGRAM_POLLING_ENABLED: ${TELEGRAM_POLLING_ENABLED:-true}
TELEGRAM_WEBHOOK_ENABLED: ${TELEGRAM_WEBHOOK_ENABLED:-false}
MEDIA_ENABLED: ${MEDIA_ENABLED:-true}
MEDIA_VOICE_ENABLED: ${MEDIA_VOICE_ENABLED:-true}
MEDIA_IMAGE_ENABLED: ${MEDIA_IMAGE_ENABLED:-true}
ASR_ENABLED: ${ASR_ENABLED:-true}
ASR_MODEL: ${ASR_MODEL:-Xenova/whisper-small}
ASR_TIMEOUT_MS: ${ASR_TIMEOUT_MS:-180000}
OPENCODE_REMOTE_BUILD_ID: ${OPENCODE_REMOTE_BUILD_ID:-local}
XDG_CONFIG_HOME: /app/config
volumes:
- ./data:/app/data
- ./config:/app/config
extra_hosts:
- host.docker.internal:host-gateway
# For Telegram webhook mode, map webhook port too:
# ports:
# - "4097:4097"