From 49f5206d35b27b4f1145cde28c8d0885327c995d Mon Sep 17 00:00:00 2001 From: Daniel Ceregatti Date: Fri, 22 Jul 2022 22:56:02 -0700 Subject: [PATCH] Switch to docker compose plugin. --- README.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 7746052..afa3c18 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ A random RCON password will be generated and output to the log when the server i Build the Docker image: ``` -docker-compose build +docker compose build ``` ### Steam Integration @@ -38,7 +38,7 @@ docker-compose build can be installed with the `anonymous` Steam user, but most mods cannot. If the goal is to add mods, a real Steam login must be used. Login: ``` -docker-compose run --rm main dayzserver login +docker compose run --rm main dayzserver login ``` Follow the prompts. Hit enter to accept the default, which is to use the `anonymous` user, otherwise use your real username and keep following the prompts to add your password and Steam Guard code. With Steam Guard enabled on the Steam @@ -54,11 +54,11 @@ Run the command again to manage the login. See [Manage](#manage). ## Run Launch the container into the background: ``` -docker-compose up -d main +docker compose up -d main ``` Tail the log: ``` -docker-compose logs -f main +docker compose logs -f main ``` ## Manage @@ -66,40 +66,40 @@ docker-compose logs -f main This just runs a bash shell in the container. It allows for the file system and files to be easily inspected. ### Shell in the container ``` -docker-compose run --rm main bash +docker compose run --rm main bash ``` ### RCON A command line RCON client is included: https://github.com/indepth666/py3rcon. The dayzserver script manages what's necessary to configure and run it: ``` -docker-compose exec main dayzserver rcon +docker compose exec main dayzserver rcon ``` To reset the RCON password in the Battle Eye configuration file, simply delete it, and a random one will be generated on the next server startup: ``` -docker-compose run --rm main rm serverfiles/battleye/baserver_x64_active* +docker compose run --rm main rm serverfiles/battleye/baserver_x64_active* ``` ### Update the DayZ server files It's probably not a good idea to update the server files while it's running. Make sure it's down first: ``` -docker-compose down +docker compose down ``` Then run the command: ``` -docker-compose run --rm main dayzserver update +docker compose run --rm main dayzserver update ``` Don't forget to [bring it back up](#run). ### Workshop - Add / List / Remove / Update mods Interactive interface for adding, listing, removing, and updating mods. ``` -docker-compose run --rm main dayzserver workshop add id1 [id2...] | list | remove id [id2...] | update +docker compose run --rm main dayzserver workshop add id1 [id2...] | list | remove id [id2...] | update ``` Look for mods in the [DayZ Workshop](https://steamcommunity.com/app/221100/workshop/). Browse to one. In its URL will be an `id` parameter. Here is the URL to SimpleAutoRun: https://steamcommunity.com/sharedfiles/filedetails/?id=2264162971. To add it: ``` -docker-compose run --rm main dayzserver workshop add 2264162971 +docker compose run --rm main dayzserver workshop add 2264162971 ``` Adding and removing mods will add and remove their names from the `-mod=` parameter.