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
Copy file name to clipboardExpand all lines: .github/workflows/external_trigger.yml
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,8 @@ jobs:
20
20
echo "**** External trigger running off of main branch. To disable this trigger, set a Github secret named \"PAUSE_EXTERNAL_TRIGGER_SOCKET_PROXY_MAIN\". ****"
21
21
echo "External trigger running off of main branch. To disable this trigger, set a Github secret named \`PAUSE_EXTERNAL_TRIGGER_SOCKET_PROXY_MAIN\`" >> $GITHUB_STEP_SUMMARY
@@ -52,9 +52,9 @@ The architectures supported by this image are:
52
52
53
53
## Application Setup
54
54
55
-
This container is a fork of[https://github.com/Tecnativa/docker-socket-proxy](https://github.com/Tecnativa/docker-socket-proxy) and as such does not follow our usual container conventions. It *does not* support mods or custom scripts/services, or running as a user other than root (or the docker user in a rootless environment).
55
+
This container is based on[https://github.com/Tecnativa/docker-socket-proxy](https://github.com/Tecnativa/docker-socket-proxy) and as such does not follow our usual container conventions. It *does not* support mods or custom scripts/services, or running as a user other than root (or the docker user in a rootless environment).
56
56
57
-
The container should be run on the same docker network as the service(s) using it. Most containers that would normally connect to a mounted docker.sock can have their endpoint overridden using the `DOCKER_HOST` environment variable if they do not offer the option in their configuration; it should typically be pointed to tcp://socket-proxy:2375.
57
+
The container should be run on the same docker network as the service(s) using it. Most containers that would normally connect to a mounted docker.sock can have their endpoint overridden using the `DOCKER_HOST` environment variable if they do not offer the option in their configuration; it should typically be pointed to `tcp://socket-proxy:2375`.
58
58
59
59
* Never expose this container's port to a public network. It should be treated the same way you would treat the docker socket or TCP endpoint.
60
60
* Revoke access to any API section that you consider your service should not need.
@@ -74,34 +74,32 @@ services:
74
74
image: lscr.io/linuxserver/socket-proxy:latest
75
75
container_name: socket-proxy
76
76
environment:
77
-
- EVENTS=1#optional
78
-
- PING=1#optional
79
-
- VERSION=1#optional
77
+
- ALLOW_START=0#optional
78
+
- ALLOW_STOP=0#optional
79
+
- ALLOW_RESTARTS=0#optional
80
80
- AUTH=0 #optional
81
-
- SECRETS=0 #optional
82
-
- POST=0 #optional
83
81
- BUILD=0 #optional
84
82
- COMMIT=0 #optional
85
83
- CONFIGS=0 #optional
86
84
- CONTAINERS=0 #optional
87
-
- ALLOW_START=0 #optional
88
-
- ALLOW_STOP=0 #optional
89
-
- ALLOW_RESTARTS=0 #optional
90
85
- DISTRIBUTION=0 #optional
86
+
- EVENTS=1 #optional
91
87
- EXEC=0 #optional
92
88
- IMAGES=0 #optional
93
89
- INFO=0 #optional
94
-
- LOG_LEVEL=info #optional
95
90
- NETWORKS=0 #optional
96
91
- NODES=0 #optional
92
+
- PING=1 #optional
93
+
- POST=0 #optional
97
94
- PLUGINS=0 #optional
95
+
- SECRETS=0 #optional
98
96
- SERVICES=0 #optional
99
97
- SESSION=0 #optional
100
98
- SWARM=0 #optional
101
99
- SYSTEM=0 #optional
102
100
- TASKS=0 #optional
101
+
- VERSION=1 #optional
103
102
- VOLUMES=0 #optional
104
-
- DISABLE_IPV6=0 #optional
105
103
volumes:
106
104
- /var/run/docker.sock:/var/run/docker.sock:ro
107
105
restart: unless-stopped
@@ -115,34 +113,32 @@ services:
115
113
```bash
116
114
docker run -d \
117
115
--name=socket-proxy \
118
-
-e EVENTS=1 `#optional` \
119
-
-e PING=1 `#optional` \
120
-
-e VERSION=1 `#optional` \
116
+
-e ALLOW_START=0 `#optional` \
117
+
-e ALLOW_STOP=0 `#optional` \
118
+
-e ALLOW_RESTARTS=0 `#optional` \
121
119
-e AUTH=0 `#optional` \
122
-
-e SECRETS=0 `#optional` \
123
-
-e POST=0 `#optional` \
124
120
-e BUILD=0 `#optional` \
125
121
-e COMMIT=0 `#optional` \
126
122
-e CONFIGS=0 `#optional` \
127
123
-e CONTAINERS=0 `#optional` \
128
-
-e ALLOW_START=0 `#optional` \
129
-
-e ALLOW_STOP=0 `#optional` \
130
-
-e ALLOW_RESTARTS=0 `#optional` \
131
124
-e DISTRIBUTION=0 `#optional` \
125
+
-e EVENTS=1 `#optional` \
132
126
-e EXEC=0 `#optional` \
133
127
-e IMAGES=0 `#optional` \
134
128
-e INFO=0 `#optional` \
135
-
-e LOG_LEVEL=info `#optional` \
136
129
-e NETWORKS=0 `#optional` \
137
130
-e NODES=0 `#optional` \
131
+
-e PING=1 `#optional` \
132
+
-e POST=0 `#optional` \
138
133
-e PLUGINS=0 `#optional` \
134
+
-e SECRETS=0 `#optional` \
139
135
-e SERVICES=0 `#optional` \
140
136
-e SESSION=0 `#optional` \
141
137
-e SWARM=0 `#optional` \
142
138
-e SYSTEM=0 `#optional` \
143
139
-e TASKS=0 `#optional` \
140
+
-e VERSION=1 `#optional` \
144
141
-e VOLUMES=0 `#optional` \
145
-
-e DISABLE_IPV6=0 `#optional` \
146
142
-v /var/run/docker.sock:/var/run/docker.sock:ro \
147
143
--restart unless-stopped \
148
144
--read-only \
@@ -156,34 +152,32 @@ Containers are configured using parameters passed at runtime (such as those abov
156
152
157
153
| Parameter | Function |
158
154
| :----: | --- |
159
-
|`-e EVENTS=1`|`/events`|
160
-
|`-e PING=1`|`/_ping`|
161
-
|`-e VERSION=1`|`/version`|
155
+
|`-e ALLOW_START=0`|`/containers/id/start`|
156
+
|`-e ALLOW_STOP=0`|`/containers/id/stop`|
157
+
|`-e ALLOW_RESTARTS=0`|`/containers/id/stop`, `/containers/id/restart`, and `/containers/id/kill`|
162
158
|`-e AUTH=0`|`/auth`|
163
-
|`-e SECRETS=0`|`/secrets`|
164
-
|`-e POST=0`| When set to `0`, only `GET` and `HEAD` operations are allowed, making API access read-only. |
165
159
|`-e BUILD=0`|`/build`|
166
160
|`-e COMMIT=0`|`/commit`|
167
161
|`-e CONFIGS=0`|`/configs`|
168
162
|`-e CONTAINERS=0`|`/containers`|
169
-
|`-e ALLOW_START=0`|`/containers/id/start`|
170
-
|`-e ALLOW_STOP=0`|`/containers/id/stop`|
171
-
|`-e ALLOW_RESTARTS=0`|`/containers/id/stop`, `/containers/id/restart`, and `/containers/id/kill`|
172
163
|`-e DISTRIBUTION=0`|`/distribution`|
164
+
|`-e EVENTS=1`|`/events`|
173
165
|`-e EXEC=0`|`/exec` & `/containers/{id}/exec`|
174
166
|`-e IMAGES=0`|`/images`|
175
167
|`-e INFO=0`|`/info`|
176
-
|`-e LOG_LEVEL=info`| Default value is `info`. Possible values are: `debug`, `info`, `notice`, `warning`, `err`, `crit`, `alert`, and `emerg`. |
177
168
|`-e NETWORKS=0`|`/networks`|
178
169
|`-e NODES=0`|`/nodes`|
170
+
|`-e PING=1`|`/_ping`|
179
171
|`-e PLUGINS=0`|`/plugins`|
172
+
|`-e POST=0`| When set to `0`, only `GET` and `HEAD` operations are allowed, making API access read-only. |
173
+
|`-e SECRETS=0`|`/secrets`|
180
174
|`-e SERVICES=0`|`/services`|
181
175
|`-e SESSION=0`|`/session`|
182
176
|`-e SWARM=0`|`/swarm`|
183
177
|`-e SYSTEM=0`|`/system`|
184
178
|`-e TASKS=0`|`/tasks`|
179
+
|`-e VERSION=1`|`/version`|
185
180
|`-e VOLUMES=0`|`/volumes`|
186
-
|`-e DISABLE_IPV6=0`| Set to `1` to disable IPv6 bindings in scenarios where the host cannot support it. |
187
181
|`-v /var/run/docker.sock:ro`| Mount the host docker socket into the container. |
188
182
|`--read-only`| Make the container filesystem read-only. |
189
183
|`--tmpfs /run`| Mount /run to tmpfs (RAM) to make it writeable. |
@@ -307,4 +301,5 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
307
301
308
302
## Versions
309
303
304
+
***08.04.24:** - Use nginx due to haproxy's wonky websockets handling.
0 commit comments