hpc-cloud/roles/rabbitmq/files/rabbitmq.service
Egon Rijpkema 5a81413b3a Added rabbitMQ and keystone with wim
Work in progress...
2017-05-16 15:52:22 +02:00

19 lines
545 B
Desktop File

[Unit]
Description=rabbitmq Container
After=docker.service
Requires=docker.service
[Service]
TimeoutStartSec=0
Restart=always
ExecStartPre=-/usr/bin/docker stop %n
ExecStartPre=-/usr/bin/docker rm %n
ExecStartPre=/usr/bin/docker pull rabbitmq:latest
ExecStart=/usr/bin/docker run -d \
-p 4369:4369 -p 25679:25679 -p 5671-5672:5671-5672 -p 8080:15672 \
-e "RABBITMQ_DEFAULT_USER=user" -e "RABBITMQ_DEFAULT_PASS=password" \
--hostname rabbitmq --name %n rabbitmq:3-management
[Install]
WantedBy=multi-user.target