From 293aaff2a5788c567159357cfad663a290d893e0 Mon Sep 17 00:00:00 2001 From: Jack Kawell Date: Wed, 8 Dec 2021 01:54:44 -0700 Subject: [PATCH] A few more improvements --- Docker.md | 6 +++--- docker-compose.yml | 6 +++--- docker/start_server.sh | 12 +++++++++--- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/Docker.md b/Docker.md index 06beb87e..0e6ae3d7 100644 --- a/Docker.md +++ b/Docker.md @@ -11,10 +11,10 @@ 1. Copy `.env.example` and save it as `.env` inside the root directory of this repository 2. Edit the `.env` file and add your path to your LEGO® Universe Client after `CLIENT_PATH=` 3. Update other values in the `.env` file as need (be sure to update passwords!) -4. Run `docker-compose up setup --build` +4. Run `docker-compose up --build setup` 5. Run `docker-compose up -d database` -6. Run `docker-compose up -d account-manager brickbuildfix --build` -7. Run `docker-compose up -d darkflame` +6. Run `docker-compose up --build -d account-manager brickbuildfix` +7. Run `docker-compose up --build -d darkflame` 8. Now you can see the output of the server with `docker compose logs -f --tail 100` or `docker-compose logs -f --tail 100`. This can help you understand issues and there you can also see when the server finishes it's startup. ## Disable brickbuildfix diff --git a/docker-compose.yml b/docker-compose.yml index 3974a959..519fcce3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -33,7 +33,7 @@ services: - 3306:3306 # (optional) ports only exposed so that DB management tools can connect darkflame: - container_name: DarkFlameServer + container_name: DarkflameServer networks: - darkflame build: @@ -54,7 +54,7 @@ services: - "3000-3300:3000-3300/udp" brickbuildfix: - container_name: DarkFlameBrickBuildFix + container_name: DarkflameBrickBuildFix networks: - darkflame build: @@ -70,7 +70,7 @@ services: start_period: 40s account-manager: - container_name: DarkFlameAccountManager + container_name: DarkflameAccountManager networks: - darkflame build: diff --git a/docker/start_server.sh b/docker/start_server.sh index ee5de738..9a2345c6 100755 --- a/docker/start_server.sh +++ b/docker/start_server.sh @@ -27,9 +27,15 @@ function symlink_config_files() { ln -s /configs/worldconfig.ini /app/worldconfig.ini } -# setup symlinks for volume files -symlink_client_files -symlink_config_files +if [[ ! -f "/app/initialized" ]]; then + # setup symlinks for volume files + symlink_client_files + symlink_config_files + # do not run symlinks more than once + touch /app/initialized +else + echo "Server already initialized" +fi # start the server echo "Start MasterServer"