mirror of
https://github.com/ghndrx/shellmate.git
synced 2026-02-10 06:45:02 +00:00
chore: switch to port 22 for cleaner SSH URLs
This commit is contained in:
@@ -24,7 +24,7 @@ RUN useradd -m shellmate && \
|
||||
USER shellmate
|
||||
RUN ssh-keygen -t ed25519 -f /etc/shellmate/ssh_host_key -N ""
|
||||
|
||||
EXPOSE 2222
|
||||
EXPOSE 22
|
||||
|
||||
ENV STOCKFISH_PATH=/usr/games/stockfish
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user