SafeLine WAF supports containerized deployment via Docker. You can get it up and running in under 5 minutes using an installation script.

Minimum Requirements

Dependency Value
OS Linux
Architecture x86_64 or ARM64
Docker v20.10.14 or above
Docker Compose v2.0.0 or above
Minimum Specs 1 core CPU / 1GB RAM / 5GB disk

Check System Configuration

uname -m                                # Check architecture
docker version                          # Check Docker version
docker compose version                  # Check Docker Compose version
cat /proc/cpuinfo | grep "processor"    # Check CPU cores
free -h                                 # Check memory
df -h                                   # Check disk space
lscpu | grep ssse3                      # Check CPU instruction support

Option 1: Automatic Installation (Recommended)

Run the following command as root to install SafeLine automatically:

bash -c "$(curl -fsSLk https://waf.chaitin.com/release/latest/manager.sh)" -- --en

After execution, head directly to the web UI to log in.


Option 2: Manual Installation

1. Install Docker

If Docker is not installed:

curl -sSL "https://get.docker.com/" | bash

2. Create SafeLine Directory

mkdir -p "/data/safeline"

SafeLine stores configs and data here. Make sure there's at least 5GB available.


3. Download Docker Compose File

cd "/data/safeline"
wget "https://waf.chaitin.com/release/latest/compose.yaml"

4. Set Environment Variables

cd "/data/safeline"
touch ".env"

Paste the following into the .env file:

SAFELINE_DIR=/data/safeline
IMAGE_TAG=latest
MGT_PORT=9443
POSTGRES_PASSWORD={postgres-password}
SUBNET_PREFIX=172.22.222
IMAGE_PREFIX=chaitin
ARCH_SUFFIX=
RELEASE=
REGION=-g

Notes:

  • For ARM servers, set ARCH_SUFFIX=-arm
  • For LTS version, set RELEASE=-lts

Launch SafeLine

docker compose up -d

The startup process may take a few minutes.


Access Web UI

Open your browser and go to:

https://:9443/

Get Admin Credentials

docker exec safeline-mgt resetadmin

Youl receive:

[SafeLine] Initial username: admin
[SafeLine] Initial password: **********
[SafeLine] Done

Use these to log in.


Uninstall SafeLine (If Needed)

To fully remove SafeLine:

cd 
docker compose down
rm -rf

👥 Join the Community
Interested in SafeLine WAF?

Click the link below to join our official SafeLine technical group.

https://discord.gg/hUAfMWhknP