Skip to content

Commit

Permalink
enable gdb & ptrace (zixia/bbs#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
huan committed Jan 25, 2021
1 parent 1dd58ea commit c23d72b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bbs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@ services:
container_name: bbs
network_mode: bridge
hostname: bbs.zixia.net

# ⬇️
# Enable GDB in container Issue #12
# https://github.com/zixia/bbs.zixia.net/issues/12
cap_add:
- SYS_PTRACE
security_opt:
- apparmor:unconfined

# ⬇️ Fix invalid port specification
# https://github.com/docker/compose/issues/4729#issuecomment-436148318
# https://medium.com/@junwan01/quote-your-ports-in-docker-compose-file-34d9505999ad
ports:
Expand Down

0 comments on commit c23d72b

Please sign in to comment.