Last active
May 19, 2020 23:31
-
-
Save denzuko/d6e59f8b180a9022fb4893b449d3fb04 to your computer and use it in GitHub Desktop.
Minecraft server
This file contains 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.7" | |
volumes: | |
mc-data: | |
networks: | |
default: | |
external: true | |
name: 'public' | |
services: | |
volumerize: | |
depends_on: | |
- minecraft-server | |
image: blacklabelops/volumerize | |
volumes: | |
- mc-data:/source | |
- backup_volume:/backup | |
- cache_volume:/volumerize-cache | |
environment: | |
VOLUMERIZE_SOURCE: '/source' | |
VOLUMERIZE_TARGET: 'file:///backup' | |
minecraft-server: | |
ports: | |
- "25565:25565" | |
environment: | |
EULA: 'true' | |
VERSION: 1.12.2 | |
DIFFICULTY: normal | |
WHITELIST: zekodun,denzuko | |
OPS: zekodun | |
TYPE: FORGE | |
GENERIC_PACK: https://github.com/denzuko/Abernalia-Modpack/archive/0.0.1.zip | |
ALLOW_NETHER: 'true' | |
ANNOUNCE_PLAYER_ACHIEVEMENTS: "true" | |
ENABLE_COMMAND_BLOCK: "true" | |
FORCE_GAMEMODE: "true" | |
GENERATE_STRUCTURES: "true" | |
SPAWN_ANIMALS: "true" | |
SPAWN_MONSTERS: "true" | |
SPAWN_NPCS: "true" | |
MODE: "survival" | |
PVP: "false" | |
SEED: ${SEED} | |
ENABLE_QUERY: "true" | |
VIEW_DISTANCE: "10" | |
MEMORY: "3G" | |
MAX_MEMORY: "3G" | |
INIT_MEMORY: "512m" | |
GUI: "FALSE" | |
CONSOLE: "FALSE" | |
networks: | |
- default | |
image: itzg/minecraft-server:latest | |
tty: true | |
stdin_open: true | |
shm_size: 128M | |
healthcheck: | |
test: ['CMD', 'mcstatus', 'localhost:25565','ping'] | |
interval: 10m | |
timeout: 10s | |
retries: 3 | |
start_period: 10m | |
deploy: | |
resources: | |
limits: | |
memory: 3.5G | |
restart_policy: | |
condition: on-failure | |
healthcheck: | |
test: ['CMD', 'mcstatus', 'localhost:25565','ping'] | |
interval: 10m | |
timeout: 10s | |
retries: 3 | |
start_period: 10m | |
volumes: | |
- mc-data:/data | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment