File: rabbit-compose.yml

package info (click to toggle)
rabbitmq-server 4.0.5-6
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 37,948 kB
  • sloc: erlang: 257,835; javascript: 22,466; sh: 2,796; makefile: 2,517; python: 1,966; xml: 646; cs: 335; java: 244; ruby: 212; php: 100; perl: 63; awk: 13
file content (49 lines) | stat: -rw-r--r-- 1,184 bytes parent folder | download | duplicates (2)
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


# https://docs.docker.com/compose/compose-file/#networks
networks:
  rabbitmq_net:
      name: rabbitmq_net
      external: true

services:
  rmq0: &rabbitmq
    # https://hub.docker.com/r/pivotalrabbitmq/rabbitmq-prometheus/tags
    << : *rabbitmq_image
    networks:
      - "rabbitmq_net"
    ports:
      - "5672:5672"
      - "15672:15672"
      - "15692:15692"
    # https://unix.stackexchange.com/questions/71940/killing-tcp-connection-in-linux
    # https://en.wikipedia.org/wiki/Tcpkill
    # https://www.digitalocean.com/community/tutorials/iptables-essentials-common-firewall-rules-and-commands#block-an-ip-address
    cap_add:
      - ALL
    hostname: rabbitmq
    container_name: rabbitmq
    environment:
      RABBITMQ_ERLANG_COOKIE: rmq0

    # we want to simulate hitting thresholds
    ulimits:
      nofile:
        soft: "2000"
        hard: "2000"
  rmq1:
    << : *rabbitmq
    container_name: rabbitmq1
    hostname: rabbitmq1
    ports:
      - "5677:5672"
      - "15677:15672"
      - "15697:15692"
  rmq2:
    << : *rabbitmq
    hostname: rabbitmq2
    container_name: rabbitmq2
    ports:
      - "5678:5672"
      - "15678:15672"
      - "15698:15692"