mcserver-docker-environment/docker-compose.yml

23 lines
630 B
YAML

version: "3"
services:
server:
image: papermc-docker
container_name: YOUR_CONTAINER_NAME
restart: always
volumes:
- "YOUR_SERVER_LOCATION":/home/server/instance:z
ports:
- "YOUR_PORT:25565"
environment:
SERVER_MEMORY: "2G"
EULA: "true"
SEED: "abc"
# provide a txt file with the usernames of the players to be whitelisted in the server folder to automatically add them to the whitelist
WHITELIST: "true"
MAX_PLAYERS: "20"
DIFFICULTY: "easy"
GAMEMODE: "survival"
MOTD: "A Dockerized Minecraft Server"
ENFORCE_SECURE_PROFILE: "false"