Skip to content

Building 70 Projects ranging from beginner to advanced so anyone can β€” learn from, build upon, use as a reference, or even copy directly. Owned by my cybersecurity company πŸ‘‡

537 B
Raw Blame
version: '3.8'

services:
  app:
    image: python:3.11

    # MEDIUM: No memory limits - can OOM kill host
    # MEDIUM: No CPU limits - can starve other containers
    # MEDIUM: No PID limits - fork bomb possible

    # MEDIUM: No restart policy

    # MEDIUM: No health check

    # MEDIUM: Running as root (no user directive)

    # MEDIUM: No read-only root filesystem

    # MEDIUM: No security options

    # MEDIUM: Unnecessary capabilities (none dropped)

    ports:
      - "8000:8000"

    command: python -m http.server 8000