From db196de4659b7a5a4e2a163c381334fe00bfcdf2 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Thu, 23 Mar 2023 15:49:14 +0800 Subject: [PATCH] docs: mark restart policy as always --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3175e9c..c9405c9 100644 --- a/README.md +++ b/README.md @@ -3,20 +3,20 @@ Start a syncplay service at `tcp/8999` with one command. ```bash -docker run -d --network host --name syncplay dnomd343/syncplay +docker run -d --network host --restart always --name syncplay dnomd343/syncplay ``` More arguments can be specified. ```bash -docker run -d --network host --name syncplay dnomd343/syncplay \ +docker run -d --network host --restart always --name syncplay dnomd343/syncplay \ --port 12345 --password dnomd343 --motd hello --isolate-room --disable-chat ``` You can also use environment variables to specify. ```bash -docker run -d --network host --name syncplay \ +docker run -d --network host --restart always --name syncplay \ --env PORT=12345 \ --env PASSWD=dnomd343 \ --env MOTD="Hello World" \ @@ -27,7 +27,7 @@ docker run -d --network host --name syncplay \ Enable TLS support of Syncplay server. ```bash -docker run -d --network host --name syncplay \ +docker run -d --network host --restart always --name syncplay \ --volume /etc/ssl/certs/343.re/:/certs/ dnomd343/syncplay --enable-tls ```