chore: 更新 Docker Compose 配置,定义网络设置并指定版本

This commit is contained in:
lixiangwuxian 2025-03-08 19:04:11 +08:00
parent b0892412ce
commit 33a59e6118
2 changed files with 14 additions and 2 deletions

3
.gitignore vendored
View File

@ -38,5 +38,4 @@ Dockerfile
resource/emoji.ttf
docker-compose.yml
docker-compose.full.yml
policy.yaml
docker-compose.yml
policy.yaml

View File

@ -1,3 +1,5 @@
version: '3.8'
services:
headless-shell:
build:
@ -11,3 +13,14 @@ services:
--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"