-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yml
More file actions
44 lines (41 loc) · 1.72 KB
/
Copy pathcompose.yml
File metadata and controls
44 lines (41 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# BungeeCord proxy + one Spigot backend — a minimal, working example.
#
# docker compose up # Ctrl-C to stop; `down -v` to also drop volumes
#
# Point a Minecraft client at localhost(:25565) — BungeeCord routes you to the
# "lobby" Spigot server. Online-mode is on, so the proxy authenticates with Mojang
# (real skins) and forwards your identity to the backend; log in with a premium
# account. For a cracked/offline test set BUNGEE__ONLINE_MODE=false.
#
# Consoles: docker compose exec bungeecord console "end"
# docker compose exec lobby console "say hi"
# Attach: docker attach $(docker compose ps -q bungeecord) (detach: Ctrl-P Ctrl-Q)
services:
bungeecord:
image: d3strukt0r/bungeecord
ports:
- "25565:25565" # MC clients connect here
environment:
- BUNGEE__ONLINE_MODE=true # proxy authenticates with Mojang → real skins
- BUNGEE__IP_FORWARD=true # forward player identity to the backend
- BUNGEE__SERVERS__LOBBY__ADDRESS=lobby:25565 # the spigot service below
- BUNGEE__SERVERS__LOBBY__RESTRICTED=false
- BUNGEE__LISTENERS__0__PRIORITIES__0=lobby # default server players land on
depends_on: [lobby]
volumes:
- bungeecord:/srv/bungeecord
stdin_open: true # keep the console attachable
tty: true
lobby:
image: d3strukt0r/spigot
environment:
- EULA=true # required; accepts https://aka.ms/MinecraftEULA
- BUNGEECORD=true # online-mode=false + spigot.yml bungeecord=true + throttle off
- MEMORY=1G
volumes:
- lobby:/srv/spigot
stdin_open: true
tty: true
volumes:
bungeecord:
lobby: