Moved all the setup of client files into a single use Docker image

This commit is contained in:
Jack Kawell
2021-12-08 00:50:15 -07:00
parent a38765d02d
commit f185c8b5db
7 changed files with 137 additions and 127 deletions

View File

@@ -1,22 +1,23 @@
# Run the Darkflame Server inside Docker
### What you need
## What you need
- Docker (Docker Desktop or on Linux normal Docker)
- Docker-Compose (Included in Docker Desktop)
- LEGO® Universe Client
### Run server inside Docker
## Run server inside Docker
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. Add some random long string after `ACCOUNT_MANAGER_SECRET=` in the `.env` file
4. (Optional) You can decrease the build time if you change number behind `BUILD_THREADS=` in the `.env` file. You should change it to the number of threads your system have.
5. Run `docker compose up -d --build` or `docker-compose up -d --build` and wait for it to complete
6. 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.
3. Update other values in the `.env` file as need (be sure to update passwords!)
4. Run `docker-compose up setup --build`
5. Run `docker-compose up -d database`
6. Run `docker-compose up -d account-manager brickbuildfix --build`
7. Run `docker-compose up -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
## Disable brickbuildfix
If you don't need the http server running on port 80 do this:
@@ -30,4 +31,4 @@ services:
- donotstart
```
4. Now run `docker compose up -d --build` or `docker-compose up -d --build`
3. Now run `docker compose up -d --build` or `docker-compose up -d --build`