-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample-docker-compose.yaml
More file actions
38 lines (37 loc) · 3.79 KB
/
Copy pathexample-docker-compose.yaml
File metadata and controls
38 lines (37 loc) · 3.79 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
# This docker compose template helps you to easily run a Minecraft server for Create+ using Docker.
# It uses the great image from itzg: https://docker-minecraft-server.readthedocs.io/en/latest/
# You can extend it with your own configurations using the environment variables: https://docker-minecraft-server.readthedocs.io/en/latest/variables/
# This is a community-made template and the author of Create+ is not responsible for help or support with this template.
# Startup and world generation may take many minutes. Use a powerful computer or server to run this container.
# Do not run this server on low-power hosts, such as Raperry Pi's.
# To play together with friends or other players, forward port 25565 in your router or use a service like https://tailscale.com/kb/1137/minecraft#step-2-install-tailscale-on-the-server, https://www.wireguard.com/ or https://github.com/fosrl/pangolin
# NEVER forward RCON or port 25575, you'll likely never need it.
services:
minecraft-create-plus:
image: itzg/minecraft-server
tty: true
stdin_open: true
ports:
- "25565:25565" # change left side of : to change port when using bridge mode
environment:
# TZ: Europe/Zurich # Set this to your Timezone or leave commented out for UTC
EULA: "TRUE" # change this to TRUE if you accept the EULA of Mojang
MODRINTH_MODPACK: t1tOiUHZ
# MODRINTH_PROJECTS: HXF82T3G # uncomment this line to include "Biomes O' Plenty" or change it to use your own modrinth mod IDs
MODRINTH_EXCLUDE_FILES: Barsita # Barista is a client-only mod and will cause the server to crash. Extends this list to exclude more mods if nessecsary.
INIT_MEMORY: 2G # You can set limits for both the container and the JVM. I recommend to use > 5GB for MAX_MEMORY and set INIT_MEMORY to something slightly lower and add 1GB for the container. See https://docker-minecraft-server.readthedocs.io/en/latest/configuration/jvm-options/#memory-limit
MAX_MEMORY: 8G
DIFFICULTY: normal # Choose difficulty, "peaceful", "easy", "normal" or "hard": https://docker-minecraft-server.readthedocs.io/en/latest/configuration/server-properties/#difficulty
WHITELIST: your_player_name # Only allow these players to join, highly recommended, use commans to list multiple players: https://docker-minecraft-server.readthedocs.io/en/latest/configuration/server-properties/#whitelist-players
OPS: your_player_name # Comma separated list of operators, allowing them to cheat and enter creative mode https://docker-minecraft-server.readthedocs.io/en/latest/configuration/server-properties/#opadministrator-players
MAX_PLAYERS: 20 # Set this to how many players can play concurrently
PVP: true # Set to "true" or "false"
SPAWN_PROTECTION: 0 # 0 disables protection. See https://minecraft.wiki/w/Server.properties#spawn-protection
SIMULATION_DISTANCE: "5" # Configures how many chunks in radius around each player process things such as entity movement. Higher distances may needlessly impact performance without improving gameplay, caps at 32.
VIEW_DISTANCE: 12 # Configures server side view distance in radius, can be increased up to 32. Higher distances allow more chunks to be sent to the client, which may cause major lag!
HARDCORE: false # Set this to "false" or "true". Set to true if you like pain and suffering
MOTD: Just another Create+ server # Change this to what MOTD should be displayed. Use " if using colors. See https://docker-minecraft-server.readthedocs.io/en/latest/configuration/server-properties/#message-of-the-day
TYPE: MODRINTH
VERSION: LATEST # Set this to a supported version (e.g 1.19.4) or to LATEST: https://docker-minecraft-server.readthedocs.io/en/latest/types-and-platforms/
volumes:
- ./data:/data # attach the relative directory 'data' to the container's /data path