From ccd42d29562591548725596692da6ebeed51247d Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Mon, 14 Apr 2025 01:56:10 -0400 Subject: update --- docker-compose.yaml | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 docker-compose.yaml (limited to 'docker-compose.yaml') diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..8dd9e25 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,52 @@ +# DO NOT RUN THIS FOR ANYTHING OTHER THAN DEBUGGING. SERIOUSLY. +# https://wiki.bitlbee.org/DebuggingCrashes +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", + ] + 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: -- cgit v1.2.3