Docs / Cloud & DevOps / How to Set Up a Staging Environment

How to Set Up a Staging Environment

By Admin · Feb 25, 2026 · Updated Apr 25, 2026 · 346 views · 1 min read

A staging environment lets you test changes before deploying to production.

Approach 1: Separate Breeze

Deploy a second Breeze as your staging server. Mirror your production setup on a smaller plan (e.g., Zephyr for staging).

Approach 2: Same Server, Different Port

# Nginx config for staging\nserver {\n    listen 8080;\n    server_name staging.example.com;\n    root /var/www/staging;\n    # ... same config as production\n}

Approach 3: Docker

Run staging as a Docker container alongside production:

docker compose -f docker-compose.staging.yml up -d

Best Practices

  • Use the same OS and software versions as production
  • Use a separate database with test data
  • Restrict access to staging with HTTP auth or IP whitelisting

Was this article helpful?