Skip to content

Instantly share code, notes, and snippets.

@andresilva
Last active August 29, 2015 14:05
Show Gist options
  • Save andresilva/763873cdb9fd393facb8 to your computer and use it in GitHub Desktop.
Save andresilva/763873cdb9fd393facb8 to your computer and use it in GitHub Desktop.
[Unit]
Description=RabbitMQ Disc Cluster Node
After=docker.service
Requires=docker.service
[Service]
TimeoutStopSec=2m
EnvironmentFile=/etc/environment
ExecStart=/bin/bash -c '\
docker run -p 22 -p 15672:15672 -p 4369:4369 -p 5672:5672 -p 35197:35197 -p 35198:35198 -e HOST_IP=$COREOS_PRIVATE_IPV4 --name rabbitmq rabbitmq:latest'
ExecStop=/usr/bin/docker stop rabbitmq
ExecStopPost=/usr/bin/docker rm rabbitmq
[X-Fleet]
X-Conflicts=rabbitmq*.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment