mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
feat(docker): expose OpenCode port with required authentication
- Expose port 5551 in docker-compose.yml for direct OpenCode access - Add OPENCODE_HOST=0.0.0.0 environment variable for Docker deployments - Require OPENCODE_SERVER_PASSWORD when exposing OpenCode externally - Update internal connection logic to use 127.0.0.1 when bound to 0.0.0.0 - Update .env.example and Docker documentation with security requirements
This commit is contained in:
1 parent
26a8532cc6
commit
986554df66
5 files changed
+12
-4
No files matched your search
@@ -38,6 +38,7 @@ services:
|
||||
container_name: opencode-manager
|
||||
ports:
|
||||
- "5003:5003"
|
||||
- "5551:5551"
|
||||
- "5100:5100"
|
||||
- "5101:5101"
|
||||
- "5102:5102"
|
||||
@@ -47,6 +48,8 @@ services:
|
||||
- HOST=0.0.0.0
|
||||
- PORT=5003
|
||||
- OPENCODE_SERVER_PORT=5551
|
||||
- OPENCODE_HOST=0.0.0.0
|
||||
- OPENCODE_SERVER_PASSWORD=${OPENCODE_SERVER_PASSWORD:?Set OPENCODE_SERVER_PASSWORD before exposing OpenCode on port 5551}
|
||||
- DATABASE_PATH=/app/data/opencode.db
|
||||
- WORKSPACE_PATH=/workspace
|
||||
- PROCESS_START_WAIT_MS=2000
|
||||
|
||||
Reference in new issue
Block a user