Skip to content

Commit

Permalink
Base coturn image from coturn/coturn:alpine and enable Prometheus (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
reisbel authored Sep 26, 2022
1 parent 997a9e6 commit 5ac0ffc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions addons/coturn/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,18 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM alpine:3.9
FROM coturn/coturn:alpine

RUN apk add -u --no-cache coturn bind-tools
USER root

RUN apk add -u --no-cache bind-tools

COPY detect_external_ip.sh /usr/bin/detect_external_ip
RUN chmod +x /usr/bin/detect_external_ip

COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh

USER nobody:nogroup

ENTRYPOINT ["/entrypoint.sh"]
3 changes: 2 additions & 1 deletion addons/coturn/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ turnserver \
--rest-api-separator="-" \
--channel-lifetime=${TURN_CHANNEL_LIFETIME:-"-1"} \
--min-port=${TURN_MIN_PORT:-25000} \
--max-port=${TURN_MAX_PORT:-25004} ${EXTRA_ARGS}
--max-port=${TURN_MAX_PORT:-25004} \
--prometheus ${EXTRA_ARGS}

0 comments on commit 5ac0ffc

Please sign in to comment.