Skip to content

Instantly share code, notes, and snippets.

@orlea
Created June 7, 2021 03:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save orlea/21de613dc881fdd4aa4dfb8e3b41d77b to your computer and use it in GitHub Desktop.
Save orlea/21de613dc881fdd4aa4dfb8e3b41d77b to your computer and use it in GitHub Desktop.
minecraft-fabric-docker-compose.yml
version: "3"
services:
mc-fabric:
image: itzg/minecraft-server
ports:
- 25565:25565
environment:
EULA: "TRUE"
MEMORY: 1536m
TYPE: "FABRIC"
VERSION: "1.16.5"
FABRIC_INSTALLER_VERSION: "0.7.3"
OPS: "オペレーター1,オペレーター2,..."
WHITELIST: "ユーザー1,ユーザー2,..."
volumes:
- ./mc-fabric:/data
- /etc/timezone:/etc/timezone:ro
tty: true
stdin_open: true
restart: always
backup:
image: itzg/mc-backup
depends_on:
- mc-fabric
volumes:
- ./mc-fabric:/data:ro
- ./mc-backups:/backups
- /etc/timezone:/etc/timezone:ro
network_mode: "service:mc-fabric"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment