Tracks docker-compose config, server scripts, and server properties. Runtime data (world, libraries, versions, logs, jar), credentials, and backup snapshots are gitignored.
12 lines
221 B
Bash
Executable File
12 lines
221 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
docker compose up -d
|
|
|
|
nohup ./portforward >> portforward.log 2>&1 &
|
|
echo $! > portforward.pid
|
|
|
|
echo "minecraft started; tunnel PID $(cat portforward.pid) (logs: portforward.log)"
|