Skip to content

Commit 7ecf35e

Browse files
Remote Agentclaude
andcommitted
fix: make code-server container port configurable via CODE_SERVER_PORT
Both sides of the Docker port mapping now use CODE_SERVER_PORT, so setting CODE_SERVER_PORT=5101 maps host:5101 → container:5101. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4bf55c4 commit 7ecf35e

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

docker/docker-compose.dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ services:
2626
ports:
2727
- "127.0.0.1:${PORT:-5100}:5100"
2828
- "127.0.0.1:${DEBUG_PORT:-6499}:6499" # Bun inspector port
29-
- "0.0.0.0:${CODE_SERVER_PORT:-8080}:8080"
29+
- "0.0.0.0:${CODE_SERVER_PORT:-8080}:${CODE_SERVER_PORT:-8080}"
3030
depends_on:
3131
db:
3232
condition: service_healthy

docker/docker-compose.prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ services:
2828
container_name: remote-agent
2929
ports:
3030
- "127.0.0.1:${PORT:-5100}:5100"
31-
- "0.0.0.0:${CODE_SERVER_PORT:-8080}:8080"
31+
- "0.0.0.0:${CODE_SERVER_PORT:-8080}:${CODE_SERVER_PORT:-8080}"
3232
depends_on:
3333
db:
3434
condition: service_healthy

docker/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ services:
2626
container_name: remote-agent
2727
ports:
2828
- "127.0.0.1:${PORT:-5100}:5100"
29-
- "0.0.0.0:${CODE_SERVER_PORT:-8080}:8080"
29+
- "0.0.0.0:${CODE_SERVER_PORT:-8080}:${CODE_SERVER_PORT:-8080}"
3030
depends_on:
3131
db:
3232
condition: service_healthy

0 commit comments

Comments
 (0)