Skip to content

Commit

Permalink
Add Stun server Dockerfile and config (#2)
Browse files Browse the repository at this point in the history
* Add Stun server Dockerfile and config

* Add coturn image version, remove commented-out code

* Remove usage of root user

* Add docker image building on push to main as well as PR to main
  • Loading branch information
klejejs authored Sep 23, 2024
1 parent b7aa2ce commit e2a7dc8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ on:
release:
types:
- published
push:
branches:
- main
pull_request:
branches:
- main

jobs:
deploy:
Expand All @@ -30,4 +36,4 @@ jobs:
context: .
platforms: linux/amd64
push: ${{ github.event_name == 'release' }}
tags: ghcr.io/${{ github.repository }}:${{ github.event.release.tag_name }}
tags: ghcr.io/${{ github.repository }}:${{ github.event.release.tag_name || github.sha }}
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM coturn/coturn:4.6.2-r12
COPY ./turnserver.conf /etc/coturn/turnserver.conf

ENV DETECT_EXTERNAL_IP=yes

EXPOSE 3478 3478/udp
3 changes: 3 additions & 0 deletions turnserver.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# STUN/General
stun-only
listening-ip=0.0.0.0

0 comments on commit e2a7dc8

Please sign in to comment.