Skip to content

๐Ÿณ Janus Gateway Docker๋กœ ์‹œ์ž‘ํ•˜๊ธฐ

Notifications You must be signed in to change notification settings

chan9yu/janus-gateway-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿณ Janus Gateway Docker๋กœ ์‹œ์ž‘ํ•˜๊ธฐ

Janus Gateway๋Š” ๋งŽ์€ ์˜์กด ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์š”๊ตฌํ•˜๊ธฐ ๋•Œ๋ฌธ์— ์„ค์น˜ํ•˜๊ธฐ ๊นŒ๋‹ค๋กœ์šด ๋ฉด์ด ์žˆ์Šต๋‹ˆ๋‹ค.
Canyan.io์—์„œ ์ œ๊ณตํ•˜๋Š” ๋„์ปค ์ด๋ฏธ์ง€๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ์‰ฝ๊ฒŒ ์„ค์น˜ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.


๐Ÿš€ ์‹œ์ž‘ํ•˜๊ธฐ

์ด ๋ ˆํฌ์ง€ํ† ๋ฆฌ๋Š” ์ตœ์†Œํ•œ์˜ ๊ธฐ๋ณธ ์„ค์ •์œผ๋กœ ์„ธํŒ…๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.
ํ”Œ๋Ÿฌ๊ทธ์ธ๋“ค์˜ ์ถ”๊ฐ€ ์„ค์ •์ด ํ•„์š”ํ•˜๋‹ค๋ฉด ์„ค์ • ํŒŒ์ผ์„ ์ถ”๊ฐ€ํ•˜๊ณ  ํ•ด๋‹น ํŒŒ์ผ์„ docker-compose์— ์žˆ๋Š” volumes์— ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.
ํ•„์š”ํ•œ ์„ค์ • ํŒŒ์ผ์€ ์—ฌ๊ธฐ์— ์ •๋ฆฌ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.

โš ๏ธ Docker๊ฐ€ ์„ค์น˜๋˜์–ด์•ผ ์‹คํ–‰์ด ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.

  1. ๋ ˆํฌ์ง€ํ† ๋ฆฌ ํด๋ก  ๋ฐ ๋””๋ ‰ํ„ฐ๋ฆฌ ์ด๋™
git clone https://github.com/chan9yu/janus-gateway-docker
cd janus-gateway-docker
  1. ๋„์ปค ์ด๋ฏธ์ง€ ๋‹ค์šด๋กœ๋“œ
docker pull canyan/janus-gateway:latest
  1. docker-compose ํ™•์ธ
version: "3.8"
services:
  janus-gateway:
    image: "canyan/janus-gateway:latest"
    command: ["/usr/local/bin/janus", "-F", "/usr/local/etc/janus"]
    ports:
      - "8188:8188"
      - "8088:8088"
      - "8089:8089"
      - "8889:8889"
      - "8000:8000"
      - "7088:7088"
      - "7089:7089"
    volumes:
      - "./janus/janus.jcfg:/usr/local/etc/janus/janus.jcfg"
      - "./janus/janus.plugin.videoroom.jcfg:/usr/local/etc/janus/janus.plugin.videoroom.jcfg"
      - "./janus/janus.transport.websockets.jcfg:/usr/local/etc/janus/janus.transport.websockets.jcfg"

  web_server:
    user: "root"
    image: httpd:alpine
    ports:
      - 80:80
    volumes:
      - ./html:/usr/local/apache2/htdocs
  1. ๋„์ปค ์‹คํ–‰
docker-compose up --build -d

์„ฑ๊ณต์ ์œผ๋กœ ์‹คํ–‰ํ–ˆ๋‹ค๋ฉด web_server์— ์„ค์ •ํ•œ 80ํฌํŠธ, ์ฆ‰ http://localhost ์— ์ ‘์†ํ•˜๋ฉด Janus ๋ฐ๋ชจ ํŽ˜์ด์ง€๊ฐ€ ์‹คํ–‰๋ฉ๋‹ˆ๋‹ค.
๋™์‹œ์— WebSocket๋„ ์„ค์ •๋œ 8188 ํฌํŠธ๋กœ ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.


๐Ÿ”— ์ฐธ๊ณ  ๋งํฌ

About

๐Ÿณ Janus Gateway Docker๋กœ ์‹œ์ž‘ํ•˜๊ธฐ

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages