-
Notifications
You must be signed in to change notification settings - Fork 1
/
.lando.base.yml
57 lines (51 loc) · 1.51 KB
/
.lando.base.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#################
# RabbitMQ Base #
####################################################
# #
# Please keep in mind that Lando is still in Beta! #
# for overriding the settings please make a .lando #
# #
####################################################
# Name of the project
name: RabbitMQ
# Set a reachable management site ( User: guest, Pass: guest )
proxy:
rabbitmq:
- rabbit.lndo.site:15672
# Setup RabbitMQ service using "compose"
services:
rabbitmq:
type: compose
services:
# Grab RabbitMQ management image
image: "rabbitmq:3-management"
hostname: "rabbit"
# Start the server for RabbitMQ
command: rabbitmq-server
# Expose RabbitMQ Ports
ports:
- '15672:15672'
- '5672:5672'
# Link RabbitMQ Configs
volumes:
- rabbitmq-isolated.conf:/etc/rabbitmq/rabbitmq.config
labels:
NAME: "rabbitmq"
# Shows IP address on 'lando start'
events:
post-start:
- rabbitmq: echo -e "\n\e[36mRABBITMQ IP ADDRESS:\e[32m"
- rabbitmq: hostname -i | cut -d' ' -f1
tooling:
# Set up command "Lando rabbit" for basic RabbitMQ commands
rabbit:
service: rabbitmq
# User must be root to prevent erlang cookie error
user: root
cmd: rabbitmqctl
# Setup command "lando rabbit-ip" to get the ip address
rabbit-ip:
service: rabbitmq
cmd:
- echo -e "\n\e[36mRABBITMQ IP ADDRESS:\e[32m"
- hostname -i | cut -d' ' -f1