| File | Purpose |
|---|---|
Dockerfile |
Builds the BTA server image |
docker-compose.yml |
Runs and manages the container |
server.properties |
Game/server settings |
# 1. Build and start (detached)
docker compose up -d --build
# 2. Follow live logs
docker compose logs -f bta-server
# 3. Attach to the server console (type commands directly)
docker attach bta-server
# Detach with Ctrl+P then Ctrl+Q
# 4. Stop gracefully
docker compose stopUse the Better than Adventure! client (v7.3_04 or matching) to connect:
- Address:
<your-host-ip>:25565 - online-mode is set to
falseby default so cracked/offline accounts can join. Set totrueinserver.propertiesfor authenticated (premium) play.
- Check the latest release at https://www.betterthanadventure.net/downloads/
- Edit
BTA_VERSIONindocker-compose.yml - Rebuild:
docker compose up -d --build
Edit JAVA_OPTS in Dockerfile or override it in docker-compose.yml:
environment:
JAVA_OPTS: "-Xms1G -Xmx4G -XX:+UseG1GC"Also update the deploy.resources.limits.memory to match.
World data lives in the bta_world Docker volume. To back it up:
docker run --rm -v bta_world:/data -v $(pwd):/backup \
busybox tar czf /backup/world-backup.tar.gz /dataTo allow external players, forward TCP port 25565 on your router to your host machine.
This whole repository was autogenerated with Claude Sonnet 4.6. I have no idea if that's how the Docker image should be build and run with docker-compose. I just needed a way to quickly running the minecraft server without having to open SSH every single time and keep it running. If you have any concerns, please let me know. Also, you need to download the server file on your own to build it.