aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yaml
blob: 303324604e08a9e714335e212c2c10a353608bc3 (plain) (blame)
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
# DO NOT RUN THIS FOR ANYTHING OTHER THAN DEBUGGING. SERIOUSLY.
# https://wiki.bitlbee.org/DebuggingCrashes
# https://wiki.bitlbee.org/Debugging
services:
  bb_dbg:
    image: bb_dbg
    build:
      context: .
      dockerfile: ./Dockerfile.debug
    deploy:
      resources:
        limits:
          memory: 1024M
    logging:
      driver: "json-file"
      options:
        max-size: "100m"
    networks:
      - bb_dbg_net
    privileged: true
    environment:
      - BITLBEE_DEBUG=1
    ports:
      - "127.0.0.1:9667:6667"
      - "172.17.0.1:9667:6667"
    # command:
    #   [
    #     "gdb",
    #     "-ex",
    #     "'handle SIGPIPE nostop noprint pass'",
    #     "-ex",
    #     "run",
    #     "-ex",
    #     "bt",
    #     "--args",
    #     "/usr/sbin/bitlbee",
    #     "-Dnv",
    #     "-d",
    #     "/var/lib/bitlbee",
    #   ]
    command:
      [
        "/usr/sbin/bitlbee",
        "-Dnv",
        "-d",
        "/var/lib/bitlbee",
      ]
    volumes:
      - bb_dbg_userdata:/var/lib/bitlbee
      - ./gdb_commands:/gdb_commands
      - /etc/ssl/certs:/etc/ssl/certs
    cap_add:
      - ALL
    dns:
      - 1.1.1.1
      - 8.8.8.8
networks:
  bb_dbg_net:
volumes:
  bb_dbg_userdata: