fix: encode strings to bytes for binary SSH + use port 22

This commit is contained in:
Greg Hendrickson
2026-01-27 18:17:47 +00:00
parent 730f2eb37a
commit 692c6c92dc
3 changed files with 9 additions and 6 deletions

View File

@@ -2,9 +2,9 @@ services:
shellmate:
build: .
ports:
- "2222:2222"
- "22:22"
environment:
- SHELLMATE_SSH_PORT=2222
- SHELLMATE_SSH_PORT=22
- 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", "2222"]
test: ["CMD", "nc", "-z", "localhost", "22"]
interval: 30s
timeout: 10s
retries: 3