version: "3" services: server: image: bta-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 settings: 0 - peaceful, 1 - easy, 2 - normal, 3 - hard DIFFICULTY: "easy" MOTD: "A Dockerized Minecraft Server"