Skip to content

Commit

Permalink
Use docker restart policy unless-stopped (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentfretin authored Dec 15, 2024
1 parent 097a0f7 commit 4d3fb85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ docker build --pull --no-cache -t janus:latest .
start the container:

```
docker run -d --restart always --net=host --name="janus" -e MAX_ROOM_SIZE=15 -e ADMIN_SECRET=YourOwnPassword janus:latest
docker run -d --restart unless-stopped --net=host --name="janus" -e MAX_ROOM_SIZE=15 -e ADMIN_SECRET=YourOwnPassword janus:latest
```

If you secure the rooms with JWT, specify the public key like this:

```
docker run -d --restart always --net=host --name="janus" -e MAX_ROOM_SIZE=15 -e ADMIN_SECRET=YourOwnPassword -e AUTH_KEY=/keys/public.der -v $PWD/public.der:/keys/public.der:ro janus:latest
docker run -d --restart unless-stopped --net=host --name="janus" -e MAX_ROOM_SIZE=15 -e ADMIN_SECRET=YourOwnPassword -e AUTH_KEY=/keys/public.der -v $PWD/public.der:/keys/public.der:ro janus:latest
```

look at the logs:
Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
services:
janus:
network_mode: host
restart: always
restart: unless-stopped
build: .
image: janus:latest
environment:
Expand Down

0 comments on commit 4d3fb85

Please sign in to comment.