forked from extern/docker
fix coturn container
This commit is contained in:
parent
e2fb894f24
commit
512327740a
@ -387,7 +387,7 @@ services:
|
|||||||
{{ if isTrue .Env.ENABLE_COTURN }}
|
{{ if isTrue .Env.ENABLE_COTURN }}
|
||||||
# coturn
|
# coturn
|
||||||
coturn:
|
coturn:
|
||||||
image: coturn/coturn:4.5
|
image: coturn/coturn:4.5-alpine
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command:
|
command:
|
||||||
- "--external-ip=${EXTERNAL_IPv4}/${EXTERNAL_IPv4}"
|
- "--external-ip=${EXTERNAL_IPv4}/${EXTERNAL_IPv4}"
|
||||||
@ -404,6 +404,7 @@ services:
|
|||||||
- ./mod/coturn/turnserver.conf:/etc/coturn/turnserver.conf
|
- ./mod/coturn/turnserver.conf:/etc/coturn/turnserver.conf
|
||||||
environment:
|
environment:
|
||||||
ENABLE_HTTPS_PROXY:
|
ENABLE_HTTPS_PROXY:
|
||||||
|
user: root
|
||||||
network_mode: host
|
network_mode: host
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
apk add jq su-exec
|
||||||
if [ "$ENABLE_HTTPS_PROXY" == true ]; then
|
if [ "$ENABLE_HTTPS_PROXY" == true ]; then
|
||||||
apk add jq
|
|
||||||
|
|
||||||
while [ ! -f /etc/resty-auto-ssl/storage/file/*latest ]
|
while [ ! -f /etc/resty-auto-ssl/storage/file/*latest ]
|
||||||
do
|
do
|
||||||
@ -28,4 +28,4 @@ if [ "${1:0:1}" == '-' ]; then
|
|||||||
set -- turnserver "$@"
|
set -- turnserver "$@"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec $(eval "echo $@")
|
su-exec nobody $(eval "echo $@")
|
Loading…
Reference in New Issue
Block a user