给公网访问加个防火墙:长亭雷池 WAF 部署指南

雷池 SafeLine

欢迎加入雷池 WAF 交流群 🎉

0 元领取 7 天专业版试用
扫码加入雷池 WAF 交流群
雷池 WAF 交流群二维码

使用微信扫描二维码

版本怎么选?点击查看 30 秒自测,找到适合你的版本 👇

Q1:你的网站 / 业务规模是?

A. 个人站点→ 推荐部署个人版👉 https://chuangx.chaitin.cn/s/Ew7YlYD
B. 业务属性,追求更强更稳防护 → 看 Q2
C. 有等保合规要求 / 多业务线 / 需定制方案 → 直接看 Q3

Q2:是否需要这些能力?

□ 站点>10、集群部署 □ IP 组 / 地理位置管控等高级防护 □ 官方技术支持 SLA
☑ 命中任意一项 → 建议上 专业版

🎁0元申请试用专业版👉: https://ly.cyberserval.tech/3V4lvzN
限时折扣,活动火爆进行中,最高立省3024元:https://waf-ce.chaitin.cn/promotion

Q3:有等保合规、审计报表、采购 / 定制 / 私有化部署需求?→ 建议上商业版 。

采购咨询/选型对比/申请使用👉: https://waf-ce.chaitin.cn/version

🙋 人力有限,日常疑问请优先 @雷池小助理 (努力成长中),也欢迎群友互帮互助

networks:
  safeline-ce:
    name: safeline-ce
    driver: bridge
    ipam:
      driver: default
      config:
        - gateway: 172.22.222.1
          subnet: 172.22.222.0/24
    driver_opts:
      com.docker.network.bridge.name: safeline-ce

services:
  postgres:
    container_name: safeline-pg
    restart: always
    image: swr.cn-east-3.myhuaweicloud.com/chaitin-safeline/safeline-postgres:15.18
    volumes:
      - ./data/resources/postgres/data:/var/lib/postgresql/data
      - /etc/localtime:/etc/localtime:ro
    environment:
      POSTGRES_USER: safeline-ce
      POSTGRES_PASSWORD: "ReplaceWithYourOwnPassword123"
    networks:
      safeline-ce:
        ipv4_address: 172.22.222.2
    command: [postgres, -c, max_connections=600]
    healthcheck:
      test: pg_isready -U safeline-ce -d safeline-ce

  mgt:
    container_name: safeline-mgt
    restart: always
    image: swr.cn-east-3.myhuaweicloud.com/chaitin-safeline/safeline-mgt:latest
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ./data/resources/mgt:/app/data
      - ./data/logs/nginx:/app/log/nginx:z
      - ./data/resources/sock:/app/sock
      - /var/run:/app/run
    ports:
      - "9443:1443"
    healthcheck:
      test: curl -k -f https://localhost:1443/api/open/health
    environment:
      MGT_PG: "postgres://safeline-ce:ReplaceWithYourOwnPassword123@safeline-pg/safeline-ce?sslmode=disable"
      MGT_PROXY: "0"
    depends_on:
      - postgres
      - fvm
    logging:
      driver: json-file
      options:
        max-size: "100m"
        max-file: "5"
    networks:
      safeline-ce:
        ipv4_address: 172.22.222.4

  detect:
    container_name: safeline-detector
    restart: always
    image: swr.cn-east-3.myhuaweicloud.com/chaitin-safeline/safeline-detector:latest
    volumes:
      - ./data/resources/detector:/resources/detector
      - ./data/logs/detector:/logs/detector
      - /etc/localtime:/etc/localtime:ro
    environment:
      LOG_DIR: /logs/detector
    networks:
      safeline-ce:
        ipv4_address: 172.22.222.5

  tengine:
    container_name: safeline-tengine
    restart: always
    image: swr.cn-east-3.myhuaweicloud.com/chaitin-safeline/safeline-tengine:latest
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /etc/resolv.conf:/etc/resolv.conf:ro
      - ./data/resources/nginx:/etc/nginx
      - ./data/resources/detector:/resources/detector
      - ./data/resources/chaos:/resources/chaos
      - ./data/logs/nginx:/var/log/nginx:z
      - ./data/resources/cache:/usr/local/nginx/cache
      - ./data/resources/sock:/app/sock
    environment:
      TCD_MGT_API: https://172.22.222.4:1443/api/open/publish/server
      TCD_SNSERVER: 172.22.222.5:8000
      SNSERVER_ADDR: 172.22.222.5:8000
      CHAOS_ADDR: 172.22.222.10
    ulimits:
      nofile: 131072
    network_mode: host

  luigi:
    container_name: safeline-luigi
    restart: always
    image: swr.cn-east-3.myhuaweicloud.com/chaitin-safeline/safeline-luigi:latest
    environment:
      MGT_IP: 172.22.222.4
      LUIGI_PG: "postgres://safeline-ce:ReplaceWithYourOwnPassword123@safeline-pg/safeline-ce?sslmode=disable"
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ./data/resources/luigi:/app/data
    logging:
      driver: json-file
      options:
        max-size: "100m"
        max-file: "5"
    depends_on:
      - detect
      - mgt
    networks:
      safeline-ce:
        ipv4_address: 172.22.222.7

  fvm:
    container_name: safeline-fvm
    restart: always
    image: swr.cn-east-3.myhuaweicloud.com/chaitin-safeline/safeline-fvm:latest
    volumes:
      - /etc/localtime:/etc/localtime:ro
    logging:
      driver: json-file
      options:
        max-size: "100m"
        max-file: "5"
    networks:
      safeline-ce:
        ipv4_address: 172.22.222.8

  chaos:
    container_name: safeline-chaos
    restart: always
    image: swr.cn-east-3.myhuaweicloud.com/chaitin-safeline/safeline-chaos:latest
    environment:
      DB_ADDR: "postgres://safeline-ce:ReplaceWithYourOwnPassword123@safeline-pg/safeline-ce?sslmode=disable"
    volumes:
      - ./data/resources/sock:/app/sock
      - ./data/resources/chaos:/app/chaos
    logging:
      driver: json-file
      options:
        max-size: "100m"
        max-file: "10"
    networks:
      safeline-ce:
        ipv4_address: 172.22.222.10
打赏支持

支付宝扫一扫

支付宝打赏二维码

感谢您的支持!让我有持续更新的动力

© 版权声明
THE END
点赞0 分享
评论 抢沙发
头像-小陈折腾日记
欢迎您留下宝贵的见解!
提交
头像-小陈折腾日记

昵称

取消
昵称表情代码图片快捷回复

    暂无评论内容