Skip to content

Instantly share code, notes, and snippets.

@Knight1
Last active November 11, 2018 18:44
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 Knight1/1503c5c047db42780134564f1e27fe70 to your computer and use it in GitHub Desktop.
Save Knight1/1503c5c047db42780134564f1e27fe70 to your computer and use it in GitHub Desktop.
install mailcow
#cloud-init
#ONLY USE THIS FOR CLEAN INSTALL with cloud-init!
runcmd:
- curl -sSL https://get.docker.com/ | CHANNEL=stable sh
- systemctl enable docker.service
- systemctl start docker.service
- curl -L https://github.com/docker/compose/releases/download/$(curl -Ls https://www.servercow.de/docker-compose/latest.php)/docker-compose-$(uname -s)-$(uname -m) > /usr/local/bin/docker-compose
- chmod +x /usr/local/bin/docker-compose
- umask 0222
- git clone https://github.com/mailcow/mailcow-dockerized /opt/mailcow-dockerized
- cd /opt/mailcow-dockerized && MAILCOW_HOSTNAME=development.mailcow ./generate_config.sh
- docker-compose pull
- docker-compose up -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment