Skip to content
This repository was archived by the owner on Jan 8, 2026. It is now read-only.

Added configurable world directory#30

Open
ApolloRoboto wants to merge 2 commits into
Joshi425:masterfrom
ApolloRoboto:master
Open

Added configurable world directory#30
ApolloRoboto wants to merge 2 commits into
Joshi425:masterfrom
ApolloRoboto:master

Conversation

@ApolloRoboto

Copy link
Copy Markdown

My world directory was inside another volume and I needed to use a different path than /world. This change allowed me to manipulate this path.

Changes:

  • Added WORLD_DIRECTORY environment variable. Which defaults to /world.
  • Updated readme to include the new variable with description.

Comment thread README.md
| RCON_PORT | `None` | Port RCON is hosted on |
| RCON_PASSWORD | `None` | RCON Password for access |
| HTTP_PORT | `8000` | Port to host on, in case of using outside docker* |
| WORLD_DIRECTORY | `/world` | Directory of the world for player stats |

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me know if you'd like to change this description.

@Lol3rrr

Lol3rrr commented Aug 6, 2023

Copy link
Copy Markdown

Are there any updates to this? I am currently in a similar situation and this would fix my problem

@ApolloRoboto

Copy link
Copy Markdown
Author

If you are using docker compose, it's possible to use my forked repository as the build context:

  ...
  exporter:
    build:
      context: https://github.com/Apollo-Roboto/minecraft-exporter.git#master
      dockerfile: Dockerfile
    environment:
      RCON_HOST: server
      RCON_PORT: '25575'
      RCON_PASSWORD: minecraft
      FORGE_SERVER: 'True'
      WORLD_DIRECTORY: /data/world
    ...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants