Skip to content

Instantly share code, notes, and snippets.

@veradalelabs
Created December 11, 2017 18:30
Show Gist options
  • Save veradalelabs/946812dfa343844966631cd29d1ebeb6 to your computer and use it in GitHub Desktop.
Save veradalelabs/946812dfa343844966631cd29d1ebeb6 to your computer and use it in GitHub Desktop.
minecraft-server:
volumes:
- ./data:/data
- ./world:/data/world
ports:
- "25565:25565"
environment:
EULA: "TRUE"
image: itzg/minecraft-server
container_name: Renameyourminecraftserver
tty: true
stdin_open: true
restart: always
@veradalelabs
Copy link
Author

Set up a data directory and a world directory in your minecraft folder

Run it with docker-compose up -d if you want to run it in daemon mode so you don't have to run it in a shell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment