Skip to content

Commit 4d3fb85

Browse files
Use docker restart policy unless-stopped (#16)
1 parent 097a0f7 commit 4d3fb85

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docker/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ docker build --pull --no-cache -t janus:latest .
9191
start the container:
9292

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

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

9999
```
100-
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
100+
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
101101
```
102102

103103
look at the logs:

docker/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
janus:
33
network_mode: host
4-
restart: always
4+
restart: unless-stopped
55
build: .
66
image: janus:latest
77
environment:

0 commit comments

Comments
 (0)