Created
October 31, 2022 13:38
-
-
Save jhx0/41064031d62fad245fbebcf2b91bd99f to your computer and use it in GitHub Desktop.
Simple Minecraft server via Docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "3" | |
| services: | |
| mc: | |
| image: itzg/minecraft-server | |
| ports: | |
| - 25565:25565 | |
| environment: | |
| EULA: "TRUE" | |
| MOTD: ".:: §cSimple §aMinecraft§f Server ::." | |
| DIFFICULTY: "easy" | |
| ENABLE_RCON: "true" | |
| RCON_PASSWORD: "PASSWORD" | |
| MAX_PLAYERS: 10 | |
| ALLOW_NETHER: "true" | |
| ANNOUNCE_PLAYER_ACHIEVEMENTS: "true" | |
| GENERATE_STRUCTURES: "false" | |
| SNOOPER_ENABLED: "false" | |
| SPAWN_NPCS: "false" | |
| MODE: "survival" | |
| SERVER_NAME: "SimpleServer" | |
| ALLOW_FLIGHT: "TRUE" | |
| MEMORY: "4G" | |
| TZ: "Europe/Berlin" | |
| tty: true | |
| stdin_open: true | |
| restart: unless-stopped | |
| volumes: | |
| - /srv/mc-server:/data | |
| - /etc/timezone:/etc/timezone:ro |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment