mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-11-12 21:28:40 +00:00
1.8 KiB
1.8 KiB
Run the Darkflame Server inside Docker
What you need
- Docker (Docker Desktop or on Linux normal Docker)
- Docker Compose (Included in Docker Desktop)
- LEGO® Universe Client (packed or unpacked). Check the main README for details on this.
Run server inside Docker
- Copy
.env.exampleand save it as.envinside the root directory of this repository - Edit the
.envfile and add your path to the root directory of your LEGO® Universe Client afterCLIENT_PATH= - Update other values in the
.envfile as needed (be sure to update passwords!) - Run
docker compose up -d --build - Run
docker compose exec darkflame /app/MasterServer -aand setup your admin account - Follow the directions here to setup regular user accounts. The server will be accessible at:
http://<EXTERNAL_IP>:5000 - Now you can see the output of the server with
docker compose logs -f --tail 100ordocker compose logs -f --tail 100. This can help you understand issues and there you can also see when the server finishes it's startup. - You're ready to connect your client!
NOTE #1: If you're running an older version of Docker, you may need to use the command docker-compose instead of docker compose.
NOTE #2: To stop the server simply run docker compose down and to restart it just run docker compose up -d again. No need to run all the steps above every time.
Disable brickbuildfix
If you don't need the http server running on port 80 do this:
- Create a file with the name
docker-compose.override.ymlin the root of the repository - Paste this content:
services:
brickbuildfix:
profiles:
- donotstart
- Now run
docker compose up -d