From 58a00c9d2e54c1227c4619a08eea3f19345d45aa Mon Sep 17 00:00:00 2001 From: Greg Hendrickson Date: Tue, 27 Jan 2026 17:31:06 +0000 Subject: [PATCH] revert: use port 2222 to avoid host SSH conflict --- Dockerfile | 2 +- docker-compose.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index eb269cb..e0f6f9a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,7 +24,7 @@ RUN useradd -m shellmate && \ USER shellmate RUN ssh-keygen -t ed25519 -f /etc/shellmate/ssh_host_key -N "" -EXPOSE 22 +EXPOSE 2222 ENV STOCKFISH_PATH=/usr/games/stockfish diff --git a/docker-compose.yml b/docker-compose.yml index 9e14dc7..958239e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,9 +2,9 @@ services: shellmate: build: . ports: - - "22:22" + - "2222:2222" environment: - - SHELLMATE_SSH_PORT=22 + - SHELLMATE_SSH_PORT=2222 - SHELLMATE_REDIS_URL=redis://redis:6379 - SHELLMATE_DATABASE_URL=postgresql://shellmate:shellmate@postgres:5432/shellmate - STOCKFISH_PATH=/usr/games/stockfish @@ -13,7 +13,7 @@ services: - postgres restart: unless-stopped healthcheck: - test: ["CMD", "nc", "-z", "localhost", "22"] + test: ["CMD", "nc", "-z", "localhost", "2222"] interval: 30s timeout: 10s retries: 3