Skip to content

Commit 345011e

Browse files
committed
add minecraft server
1 parent aaa4c54 commit 345011e

File tree

3 files changed

+59
-0
lines changed

3 files changed

+59
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Monorepo collection of fly.toml and Dockerfile etc collections for deployment.
1010
- [Jupyter](https://jupyter.org)
1111
- [Maybe](https://github.com/maybe-finance/maybe)
1212
- [meilisearch](https://github.com/meilisearch/meilisearch)
13+
- [Minecraft](https://docker-minecraft-server.readthedocs.io/en/latest/)
1314
- [n8n](https://github.com/n8n-io/n8n)
1415
- [NocoDB](https://github.com/nocodb/nocodb)
1516
- [Redis](https://redis.io/docs/latest/)

minecraft-server/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Minecraft on Fly.io
2+
3+
For more configuration options, see: https://docker-minecraft-server.readthedocs.io/en/latest/variables/
4+
5+
## Instructions
6+
7+
1. Launch fly app: `fly launch --no-deploy`
8+
2. Allocate dedicated IPs:
9+
10+
```bash
11+
fly ips allocate-v6
12+
fly ips allocate-v4 --yes
13+
```
14+
15+
3. Launch the app: `fly deploy`

minecraft-server/fly.toml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
app = 'minecraft-server-morning-sun-1582'
2+
primary_region = 'sjc'
3+
4+
[build]
5+
image = 'itzg/minecraft-server'
6+
7+
[env]
8+
MEMORY = '1G'
9+
SERVER_PORT = '25565'
10+
SERVER_HOST = 'localhost'
11+
TZ = 'US/Pacific'
12+
EULA = 'TRUE'
13+
VERSION = 'LATEST' # Configure the Minecraft version
14+
ENABLE_ROLLING_LOGS = 'true'
15+
ENABLE_RCON = 'false'
16+
RCON_PORT = '28016'
17+
# RCON_PASSWORD = 'testing' # SET WITH `fly secrets set RCON_PASSWORD=testing`
18+
SERVER_NAME = 'FlyServer'
19+
MOTD = 'Welcome to Minecraft on Fly.io!'
20+
DIFFICULTY = 'easy'
21+
MODE = 'survival'
22+
PVP = 'true'
23+
LOG_IPS = 'true'
24+
# SEED = '1785852800490497919'
25+
26+
[[mounts]]
27+
source = 'data'
28+
destination = '/data'
29+
initial_size = '2g'
30+
31+
[[services]]
32+
protocol = 'tcp'
33+
internal_port = 25565
34+
auto_stop_machines = 'suspend'
35+
auto_start_machines = true
36+
min_machines_running = 1
37+
[[services.ports]]
38+
handlers = []
39+
port = 25565
40+
41+
[[vm]]
42+
memory = '1gb'
43+
cpus = 1

0 commit comments

Comments
 (0)