File: docker-compose.yml

package info (click to toggle)
apache-log4j2 2.17.1-1~deb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 21,328 kB
  • sloc: java: 174,836; xml: 26,222; sh: 97; jsp: 21; javascript: 7; makefile: 5
file content (74 lines) | stat: -rwxr-xr-x 1,756 bytes parent folder | download | duplicates (3)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: "3"
services:
  socat:
    container_name: socat
    image: bobrik/socat
    command: TCP-LISTEN:1234,fork UNIX-CONNECT:/var/run/docker.sock
    expose:
      - "1234"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    networks:
      sample_network:
        aliases:
          - socat

  rabbitmq:
    container_name: rabbit
    image: rabbitmq:3-management-alpine
    expose:
      - "5672"
      - "15672"
    ports:
      - "5672:5672"
      - "15672:15672"
    volumes:
      - ./init/rabbit/rabbitmq.config:/etc/rabbitmq/rabbitmq.config:ro
      - ./init/rabbit/definitions.json:/etc/rabbitmq/definitions.json:ro
    networks:
      sample_network:
        aliases:
          - rabbitmq

  fluent-bit:
    container_name: fluent-bit
    image: fluent/fluent-bit:latest
    expose:
      - "2020"
      - "24221"
      - "24224"
    ports:
      - "24224:24224"
    volumes:
      - ./init/fluent-bit/fluent-bit.conf:/fluent-bit/etc/fluent-bit.conf
      - ./target/logs:/var/logs
    networks:
      sample_network:
        aliases:
          - fluent-bit

  flume:
    container_name: flume
    image: probablyfine/flume:latest
    expose:
      - "5050"
    environment:
      FLUME_AGENT_NAME: forwarder
      FLUME_JAVA_OPTS: -Dlog4j.configuration=file:///opt/flume-config/log4j.properties
    volumes:
      - ./init/flume/start-flume.sh:/opt/flume/bin/start-flume
      - ./init/flume/flume.conf:/opt/flume-config/flume.conf
      - ./init/flume/flume-env.sh:/opt/flume-config/flume-env.sh
      - ./init/flume/log4j.properties:/opt/flume-config/log4j.properties
      - ~/flume-logs:/var/log/flume
    networks:
      sample_network:
        aliases:
          - flume


networks:
  sample_network:

volumes:
  pgdata: