Self-hosted · Docker

Install Community Edition on your own server

The same platform that powers our hosted plans, packaged as Docker images. One compose file, one .env, one command. This page has everything needed to install it — for people and for AI agents.

At a glance

ProductSitebill Community Edition — real estate website, CRM, listings, search and admin panel
Docker Hubsitebill/community-api (API, queue, scheduler) and sitebill/community-web (website and admin panel)
Other imagesmariadb:11.8 and redis:8-alpine, pulled automatically by the compose file
Tagslatest (newest stable release) or X.Y.Z (pinned version, recommended for production). Both images must use the same tag.
RequirementsA Linux server (or any machine) with Docker Engine and Docker Compose v2. A small VPS with 2 vCPU and 4 GB RAM is a comfortable start.
Exposed port3000 (the web container; change it with WEB_PORT). The API is reached through the same address.
Install timeAbout 5 minutes plus the image download
CostThe core is free with no time limit. Paid apps (CRM, booking, telephony, bots, feed export, AI search) are activated with a license key.
Success checkdocker compose ps shows all services running and healthy, and APP_URL opens the setup wizard (or the login page when the admin was created from .env).
Installation

Install in eight steps

Copy the commands in order. Replace the example domain, password and e-mail with your own.

  1. Check that Docker is installed

    You need Docker Engine and the Compose plugin (v2). Both commands must print a version.

    bash
    docker --version
    docker compose version
  2. Download the compose file and the environment template

    Create a folder for the installation. The files are always the current versions; the full docker-compose.yml is also shown at the bottom of this page.

    bash
    mkdir sitebill-community && cd sitebill-community
    curl -O https://www.sitebill.ru/storage/community/docker-compose.yml
    curl -o .env https://www.sitebill.ru/storage/community/env.example
  3. Set the variables in .env

    Two values are required: DB_PASSWORD and APP_URL. Generate a strong password, then edit .env.

    VariableMeaning
    DB_PASSWORDDatabase password. Required. It is applied when the database is first created; changing it later needs extra steps (see troubleshooting).
    APP_URLThe address visitors open, for example https://realty.example.com. For a local test leave http://localhost:3000.
    WEB_PORTHost port for the website. Default 3000.
    COMMUNITY_ADMIN_EMAIL, COMMUNITY_ADMIN_PASSWORDOptional. When both are set, the administrator is created automatically and the setup wizard is skipped. Handy for scripted and unattended installs.
    COMMUNITY_VERSIONImage tag for both images. Default latest; set X.Y.Z to pin a version.
    COMMUNITY_TELEMETRYfalse turns off the anonymous daily install statistics (version, counters, enabled apps — no content, e-mails or keys).
    .env
    # generate a password
    openssl rand -base64 24
    
    # .env (minimum)
    APP_URL=https://realty.example.com
    DB_PASSWORD=paste-the-generated-password
    
    # optional: create the admin automatically
    COMMUNITY_ADMIN_EMAIL=admin@example.com
    COMMUNITY_ADMIN_PASSWORD=choose-a-strong-password
  4. Start the stack

    The first start downloads the images and prepares the database; the api service installs itself (COMMUNITY_AUTOINSTALL). Wait until api reports healthy. The other services (web, queue, scheduler, db, redis) start after it.

    bash
    docker compose up -d
    docker compose ps
    docker compose logs -f api
  5. Open the site and finish the setup wizard

    Open APP_URL in a browser. The wizard creates the administrator, lets you choose a map provider and enter a license key (you can skip the key and add it later in Apps). If the administrator was created from .env, sign in at /auth/login instead.

    Check from the command line: curl -I $APP_URL should answer with 200 or a redirect to the wizard.

    bash
    curl -I http://localhost:3000
  6. Put it behind HTTPS

    Point your domain’s DNS at the server and put a reverse proxy in front of port 3000. With Caddy the certificate is issued automatically. Then set APP_URL=https://…, SESSION_SECURE_COOKIE=true and SANCTUM_STATEFUL_DOMAINS=your-domain in .env and apply the change.

    Caddyfile + .env
    # /etc/caddy/Caddyfile
    realty.example.com {
        reverse_proxy 127.0.0.1:3000
    }
    
    # .env
    APP_URL=https://realty.example.com
    SESSION_SECURE_COOKIE=true
    SANCTUM_STATEFUL_DOMAINS=realty.example.com
    
    # apply
    docker compose up -d
  7. Activate paid apps with a license key

    The core works without a key. To enable paid apps, get a license in your account on this site, then open Apps in the admin panel and enter the key. Apps switch on immediately — no reinstall. The license server address and the verification key are built into the images.

  8. Update and back up

    Updates: Apps → Updates in the admin panel downloads a signed release, verifies it and rolls back by itself if something fails. To move to a newer image instead, pull and restart. Back up the database and the data volume (files, releases, application key) — never delete that volume.

    bash
    # update images
    docker compose pull
    docker compose up -d
    
    # database backup
    docker compose exec db sh -c 'mariadb-dump -u"$MARIADB_USER" -p"$MARIADB_PASSWORD" "$MARIADB_DATABASE"' > backup.sql
Reference

The full docker-compose.yml

Six services in one file: api, queue, scheduler, web, db and redis. Save it as docker-compose.yml next to your .env.

  1. docker-compose.yml

    The api, queue and scheduler services run the same sitebill/community-api image in three roles. They share the data volume with web.

    docker-compose.yml
    # Sitebill Community Edition: docker compose up -d
    # Before the first start create .env next to this file and set DB_PASSWORD and APP_URL.
    name: etown-community
    
    x-api: &api
      image: ${COMMUNITY_IMAGE_API:-sitebill/community-api}:${COMMUNITY_VERSION:-latest}
      env_file: .env
      environment: &api-env
        APP_ENV: production
        APP_DEBUG: "false"
        EDITION: community
        COMMUNITY_TELEMETRY: ${COMMUNITY_TELEMETRY:-true}
        DB_CONNECTION: mysql
        DB_HOST: db
        DB_PORT: 3306
        DB_DATABASE: ${DB_DATABASE:-community}
        DB_USERNAME: ${DB_USERNAME:-community}
        DB_PASSWORD: ${DB_PASSWORD:?Set DB_PASSWORD in .env}
        REDIS_HOST: redis
        CACHE_STORE: redis
        QUEUE_CONNECTION: redis
        SESSION_DRIVER: database
        SESSION_SECURE_COOKIE: ${SESSION_SECURE_COOKIE:-false}
        SESSION_SAME_SITE: lax
        SANCTUM_STATEFUL_DOMAINS: ${SANCTUM_STATEFUL_DOMAINS:-localhost,localhost:3000,127.0.0.1:3000}
      volumes:
        - data:/data
      depends_on:
        db:
          condition: service_healthy
        redis:
          condition: service_started
      restart: unless-stopped
    
    services:
      api:
        <<: *api
        environment:
          <<: *api-env
          APP_URL: ${APP_URL:-http://localhost:3000}
          COMMUNITY_AUTOINSTALL: "true"
    
      queue:
        <<: *api
        command: ["follow-release", "php", "artisan", "queue:work", "--sleep=3", "--tries=3", "--max-time=3600"]
        healthcheck:
          disable: true
        environment:
          <<: *api-env
          AUTORUN_ENABLED: "false"
          COMMUNITY_AUTOINSTALL: "false"
        depends_on:
          api:
            condition: service_healthy
    
      scheduler:
        <<: *api
        command: ["follow-release", "php", "artisan", "schedule:work"]
        healthcheck:
          disable: true
        environment:
          <<: *api-env
          AUTORUN_ENABLED: "false"
          COMMUNITY_AUTOINSTALL: "false"
        depends_on:
          api:
            condition: service_healthy
    
      web:
        image: ${COMMUNITY_IMAGE_WEB:-sitebill/community-web}:${COMMUNITY_VERSION:-latest}
        environment:
          NUXT_PUBLIC_EDITION: community
          NUXT_PUBLIC_API_BASE: ${APP_URL:-http://localhost:3000}
          NUXT_PUBLIC_STORAGE_BASE: ${APP_URL:-http://localhost:3000}/storage/
          NUXT_PUBLIC_MARKETPLACE_URL: ${MARKETPLACE_URL:-https://www.sitebill.ru/self-hosted/#buy}
        volumes:
          - data:/data:ro
        ports:
          - "${WEB_PORT:-3000}:3000"
        depends_on:
          api:
            condition: service_healthy
        restart: unless-stopped
    
      db:
        image: mariadb:11.8
        environment:
          MARIADB_DATABASE: ${DB_DATABASE:-community}
          MARIADB_USER: ${DB_USERNAME:-community}
          MARIADB_PASSWORD: ${DB_PASSWORD:?Set DB_PASSWORD in .env}
          MARIADB_RANDOM_ROOT_PASSWORD: "1"
        volumes:
          - dbdata:/var/lib/mysql
        healthcheck:
          test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
          interval: 5s
          timeout: 5s
          retries: 30
        restart: unless-stopped
    
      redis:
        image: redis:8-alpine
        volumes:
          - redisdata:/data
        restart: unless-stopped
    
    volumes:
      data:
      dbdata:
      redisdata:
FAQ

Troubleshooting and questions

The site does not open or the login does not stay

Check that APP_URL matches exactly the address in the browser (scheme, domain, port). Over plain http keep SESSION_SECURE_COOKIE=false; over https set it to true and list the domain in SANCTUM_STATEFUL_DOMAINS. Then run docker compose up -d again.

The api service is not healthy

Read the log with docker compose logs api. The usual causes are a missing DB_PASSWORD, a busy port (change WEB_PORT) or too little memory on a very small server.

I changed DB_PASSWORD and the database refuses the connection

MariaDB reads the password only when the database volume is created. On a fresh test install remove the volumes with docker compose down -v and start again. On a live install change the password inside MariaDB first, then in .env.

Which version should I run?

Use a pinned version X.Y.Z in COMMUNITY_VERSION on production and update deliberately. latest is convenient for trials. The web and api images must have the same tag.

Is any data sent to you?

Only the anonymous daily statistics described above (version, counters, enabled apps). Set COMMUNITY_TELEMETRY=false to turn it off. Listings, contacts and files never leave your server.

Can I move from Community Edition to the hosted plan, or back?

Yes. Listings and contacts can be exported and imported from Excel, so you are never locked in.

For AI agents and automation

This page is written to be executed top to bottom. Machine-readable entry points:

  • Plain-text summary: /llms.txt
  • Steps and commands are marked up as HowTo structured data in the page head.
  • Docker Hub: https://hub.docker.com/r/sitebill/community-api and https://hub.docker.com/r/sitebill/community-web
  • Unattended install: set DB_PASSWORD, APP_URL, COMMUNITY_ADMIN_EMAIL and COMMUNITY_ADMIN_PASSWORD in .env, run docker compose up -d, then poll docker compose ps until api is healthy and curl -I $APP_URL answers.
  • Never print or commit .env; it contains the database password and the administrator credentials.
Self-hosted

Ready to install?

Pull the images, follow the steps above, and add paid apps with a license key whenever you need them.