version: '3.8'

services:
  headless-shell:
    build:
      context: .
      dockerfile: Dockerfile
    ports:
      - "9222:9222"
    command: >
      --disable-gpu 
      --no-sandbox 
      --remote-debugging-address=0.0.0.0 
      --remote-debugging-port=9222
    restart: unless-stopped

networks:
  restricted_net:
    driver: bridge
    ipam:
      config:
        - subnet: 172.20.0.0/16
          gateway: 172.20.0.1
    driver_opts:
      com.docker.network.bridge.name: qq_bot_net
      com.docker.network.bridge.enable_ip_masquerade: "false"
