mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
fix: expose opencode server port 5551 in Docker and bind to 0.0.0.0
This commit is contained in:
1 parent
7a46fa27c5
commit
5edeff326c
4 files changed
+14
-2
No files matched your search
+1
-1
@@ -97,7 +97,7 @@ RUN chmod +x /docker-entrypoint.sh
|
||||
RUN mkdir -p /workspace /app/data /home/node/.cache /home/node/.opencode && \
|
||||
chown -R node:node /workspace /app/data /home/node
|
||||
|
||||
EXPOSE 5003 5100 5101 5102 5103
|
||||
EXPOSE 5003 5100 5101 5102 5103 5551
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=3s --start-period=40s --retries=3 \
|
||||
CMD curl -f http://localhost:5003/api/health || exit 1
|
||||
|
||||
@@ -23,6 +23,7 @@ import { patchOpenCodeConfig } from './proxy'
|
||||
|
||||
const OPENCODE_SERVER_PORT = ENV.OPENCODE.PORT
|
||||
const OPENCODE_SERVER_HOST = ENV.OPENCODE.HOST
|
||||
const OPENCODE_SERVER_BIND_HOST = process.env.OPENCODE_HOST || '0.0.0.0'
|
||||
const OPENCODE_SERVER_PUBLIC_URL = ENV.OPENCODE.PUBLIC_URL
|
||||
const OPENCODE_SERVER_PASSWORD = ENV.OPENCODE.SERVER_PASSWORD
|
||||
const OPENCODE_SERVER_USERNAME = ENV.OPENCODE.SERVER_USERNAME
|
||||
@@ -251,7 +252,7 @@ class OpenCodeServerManager {
|
||||
[
|
||||
'serve',
|
||||
'--port', OPENCODE_SERVER_PORT.toString(),
|
||||
'--hostname', OPENCODE_SERVER_HOST,
|
||||
'--hostname', OPENCODE_SERVER_BIND_HOST,
|
||||
'--print-logs',
|
||||
'--log-level', 'DEBUG',
|
||||
],
|
||||
|
||||
@@ -10,6 +10,7 @@ services:
|
||||
- "5101:5101"
|
||||
- "5102:5102"
|
||||
- "5103:5103"
|
||||
- "5551:5551"
|
||||
environment:
|
||||
- NODE_ENV=${NODE_ENV:-production}
|
||||
- HOST=0.0.0.0
|
||||
|
||||
@@ -42,6 +42,7 @@ services:
|
||||
- "5101:5101"
|
||||
- "5102:5102"
|
||||
- "5103:5103"
|
||||
- "5551:5551"
|
||||
environment:
|
||||
- NODE_ENV=${NODE_ENV:-production}
|
||||
- HOST=0.0.0.0
|
||||
@@ -158,6 +159,15 @@ ports:
|
||||
- "5103:5103"
|
||||
```
|
||||
|
||||
### OpenCode Server Port
|
||||
|
||||
The OpenCode server runs on port 5551 (managed by the backend):
|
||||
|
||||
```yaml
|
||||
ports:
|
||||
- "5551:5551"
|
||||
```
|
||||
|
||||
Configure your dev server to use one of these ports:
|
||||
|
||||
=== "Vite"
|
||||
|
||||
Reference in new issue
Block a user