Skip to content

Instantly share code, notes, and snippets.

@devinus
Created December 29, 2014 02:38
Show Gist options
  • Save devinus/8cf653372dbabee2ea9e to your computer and use it in GitHub Desktop.
Save devinus/8cf653372dbabee2ea9e to your computer and use it in GitHub Desktop.
#cloud-config
write_files:
- content: |
description "Minecraft"
start on started docker and started networking
stop on stopping docker
respawn
exec /usr/bin/docker start -a minecraft
path: /etc/init/minecraft.conf
runcmd:
- docker create --name minecraft --dns 8.8.8.8 --dns 8.8.4.4 -p 25565:25565 devinus/docker-minecraft
- service minecraft start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment