@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Added
- `docker-compose.yml`
+- configure remote bind port via `$BIND_PORT`
### Changed
- `COPY --chown` instead of `COPY` + `RUN`
@@ -14,4 +14,5 @@ COPY --chown=tunnel:nogroup known_hosts /home/tunnel/.ssh/known_hosts
USER tunnel
ENV BIND_ADDRESS bind-address
-CMD ssh -T -R $BIND_ADDRESS:22:$DOCKER_HOST_ADDRESS:22 serveo.net
+ENV BIND_PORT 22
+CMD ssh -T -R $BIND_ADDRESS:$BIND_PORT:$DOCKER_HOST_ADDRESS:22 serveo.net
@@ -19,3 +19,9 @@ Forwarding SSH traffic from alias "host-alias"
```sh
$ ssh -J serveo.net host-alias
```
+
+### change remote bind port
+```sh
+$ docker run -e BIND_PORT=2222 …
+```