manage data files

This commit is contained in:
2024-12-30 12:25:56 +02:00
parent 79147aea1a
commit 305ce7c861
4 changed files with 19 additions and 0 deletions
+1
View File
@@ -1,4 +1,5 @@
.dockerignore
.gitignore
Dockerfile
README.md
.git
+1
View File
@@ -0,0 +1 @@
.mcdata
+14
View File
@@ -8,10 +8,24 @@ docker build --tag clodyx/btw-server:latest .
## Run in Docker
self contained
```sh
docker run -ti --name btw -p 25565:25565 clodyx/btw-server:latest
```
data folder mounted in a volume
```sh
docker run -ti --name btw -p 25565:25565 -v mcdata:/data clodyx/btw-server:latest
```
data folder mounted in a local subfolder (./.mcdata)
```sh
docker run -ti --name btw -p 25565:25565 -v $pwd/.mcdata:/data clodyx/btw-server:latest
```
## Reference
<https://wiki.btwce.com/index.php?title=Installation>
+3
View File
@@ -1,2 +1,5 @@
#!/usr/bin/env bash
mkdir -p /data
cp -r ./* /data/
cd /data
java -jar fabric-server-launch.jar