Перейти к содержимому

Coolify

A server managed by Coolify 4, with its Traefik or Caddy proxy, and a domain that points at it. Add a Docker Compose resource from the file below, set the domain on the fluxer service and deploy. It takes about 15 minutes.

  • One Docker Compose resource, one container, and a volume for /var/lib/fluxer.
  • A route in Coolify’s proxy from your domain to port 8080 of the container.
  • Ports 7881 on TCP and 7882 on UDP for voice.

Check the requirements.

Coolify’s proxy uses ports 80 and 443 and gets the certificate, so Squad runs in proxy mode. Open ports 7881 and 7882 in the firewall in front of the server, so that calls work.

  1. In your project, choose New Resource, then “Docker Compose Empty”, and paste this.

    Для Squad скачайте исходники и конфигурацию сборки. Команда получения готового пакета для этой платформы отсутствует.

  2. Set the domain of the fluxer service to https://chat.example.com:8080.

    Coolify routes your domain to port 8080 of the container. It also passes the domain to Squad as FLUXER_DOMAIN, without https:// or a port.

    Coolify’s proxy connects from a private Docker address, and Squad trusts it.

  3. Deploy.

    After a few minutes, Coolify shows the resource as running and healthy.

  4. Open the terminal of the fluxer container in Coolify and print the setup token.

    Окно терминала
    fluxerd setup-token

    Open your domain and paste the token to create the first admin account.

To upgrade, change the tag on the image line to the new version and deploy again. The FLUXER_UPGRADE_COMMAND line makes the admin panel show this step, with the new version filled in, when a new release is out and you have turned on the daily release check.

Coolify’s own scheduled database backups don’t include Squad, because PostgreSQL runs inside the Squad container. With FLUXER_BACKUP_SCHEDULE: daily in the compose file, Squad writes a backup into /var/lib/fluxer/backups in its volume every day. Copy those archives off the server, for example to another machine with rsync.