Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Commit

Permalink
0.0.6 (#7)
Browse files Browse the repository at this point in the history
* head only docker image

* example moved and based on head
  • Loading branch information
maehr authored Apr 12, 2020
1 parent 5fc37b8 commit 3a9d2e0
Show file tree
Hide file tree
Showing 23 changed files with 23 additions and 20 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ Docker for [Janus](https://janus.conf.meetecho.com/), the general purpose WebRTC

## Installation

Create certificates in `/data/certificates/`.
Create certificates in `/example/certificates/`.

Copy the config files in `/data/conf/`.
Copy the config files in `/example/conf/`.

```bash
cd example/conf/
cp janus.eventhandler.sampleevh.jcfg.sample janus.eventhandler.sampleevh.jcfg
cp janus.eventhandler.wsevh.jcfg.sample janus.eventhandler.wsevh.jcfg
cp janus.jcfg.sample janus.jcfg
Expand Down Expand Up @@ -43,12 +44,14 @@ Edit the files:
Use [Docker](https://www.docker.com/) to build the image.

```bash
docker build -t openmuseum/janus-gateway-docker src/.
cd example
docker build .
```

## Usage

```bash
cd example
docker-compose up -d
```

Expand Down
File renamed without changes.
9 changes: 9 additions & 0 deletions example/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM openmuseum/janus-gateway

COPY conf /opt/janus/etc/janus/

COPY certificates /usr/share/certificates/

WORKDIR /usr/janus-gateway

CMD ./janus
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ general: {
# Finally, by default NIST P-256 certificates are generated (see #1997),
# but RSA generation is still supported if you set 'rsa_private_key' to 'true'.
certificates: {
#cert_pem = "/path/to/certificate.pem"
#cert_key = "/path/to/key.pem"
#cert_pem = "/usr/share/certificates/cert.pem"
#cert_key = "/usr/share/certificates/key.pem"
#cert_pwd = "secretpassphrase"
#dtls_accept_selfsigned = false
#dtls_ciphers = "your-desired-openssl-ciphers"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ cors: {
# You can also disable insecure protocols and ciphers by configuring the
# 'ciphers' property accordingly (no limitation by default).
certificates: {
#cert_pem = "/path/to/cert.pem"
#cert_key = "/path/to/key.pem"
#cert_pem = "/usr/share/certificates/cert.pem"
#cert_key = "/usr/share/certificates/key.pem"
#cert_pwd = "secretpassphrase"
#ciphers = "PFS:-VERS-TLS1.0:-VERS-TLS1.1:-3DES-CBC:-ARCFOUR-128"
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ admin: {

# Certificate and key to use for any secure WebSocket server, if enabled (and passphrase if needed).
certificates: {
#cert_pem = "/path/to/cert.pem"
#cert_key = "/path/to/key.pem"
#cert_pem = "/usr/share/certificates/cert.pem"
#cert_key = "/usr/share/certificates/key.pem"
#cert_pwd = "secretpassphrase"
}
7 changes: 1 addition & 6 deletions docker-compose.yml → example/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ version: "3"
services:
janus-gateway:
container_name: janus-gateway
#image: openmuseum/janus-gateway-docker:latest
build:
context: src
build: .
ports:
# http
- 8088:8088
Expand All @@ -16,6 +14,3 @@ services:
# wss
- 8989:8989
restart: unless-stopped
volumes:
- ./data/conf:/opt/janus/etc/janus/
- ./data/certificates:/usr/share/certificates/
6 changes: 1 addition & 5 deletions src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,4 @@ WORKDIR /usr/janus-gateway
RUN ./autogen.sh
RUN ./configure --prefix=/opt/janus --disable-boringssl
RUN make && make install
RUN make configs

WORKDIR /usr/janus-gateway

CMD ./janus
RUN make configs

0 comments on commit 3a9d2e0

Please sign in to comment.