You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This container has a helper script to generate an ssh private/public key. In order to generate a key please run:
@@ -120,6 +133,11 @@ services:
120
133
- USER_PASSWORD_FILE=/path/to/file #optional
121
134
- USER_NAME=linuxserver.io #optional
122
135
- LOG_STDOUT= #optional
136
+
- SOCAT_ENABLED=false #optional
137
+
- SOCAT_LISTEN_PORT=43388 #optional
138
+
- SOCAT_TARGET_HOST=localhost #optional
139
+
- SOCAT_TARGET_PORT=43389 #optional
140
+
- SOCAT_LOG_LEVEL=-ddd #optional
123
141
volumes:
124
142
- /path/to/openssh-server/config:/config
125
143
ports:
@@ -146,6 +164,11 @@ docker run -d \
146
164
-e USER_PASSWORD_FILE=/path/to/file `#optional` \
147
165
-e USER_NAME=linuxserver.io `#optional` \
148
166
-e LOG_STDOUT= `#optional` \
167
+
-e SOCAT_ENABLED=false `#optional` \
168
+
-e SOCAT_LISTEN_PORT=43388 `#optional` \
169
+
-e SOCAT_TARGET_HOST=localhost `#optional` \
170
+
-e SOCAT_TARGET_PORT=43389 `#optional` \
171
+
-e SOCAT_LOG_LEVEL=-ddd `#optional` \
149
172
-p 2222:2222 \
150
173
-v /path/to/openssh-server/config:/config \
151
174
--restart unless-stopped \
@@ -173,6 +196,11 @@ Containers are configured using parameters passed at runtime (such as those abov
173
196
|`-e USER_PASSWORD_FILE=/path/to/file`| Optionally specify a file that contains the password. This setting supersedes the `USER_PASSWORD` option (works with docker secrets). |
174
197
|`-e USER_NAME=linuxserver.io`| Optionally specify a user name (Default:`linuxserver.io`) |
175
198
|`-e LOG_STDOUT=`| Set to `true` to log to stdout instead of file. |
199
+
|`-e SOCAT_ENABLED=false`| Set to `true` to enable socat forwarding. |
200
+
|`-e SOCAT_LISTEN_PORT=43388`| Port socat listens on inside the container. |
201
+
|`-e SOCAT_TARGET_HOST=localhost`| Target host for socat forwarding. |
202
+
|`-e SOCAT_TARGET_PORT=43389`| Target port for socat forwarding. |
203
+
|`-e SOCAT_LOG_LEVEL=-ddd`| Socat log level. |
176
204
|`-v /config`| Contains all relevant configuration files. |
177
205
178
206
## Environment variables from files (Docker secrets)
0 commit comments