Docker Desktop on macOS and Windows
Short version
Заголовок раздела «Short version»Docker Desktop with 4 GB of memory for its VM, which Squad shares with Docker and your other containers. You also need compose.yaml and fluxer.env, and a domain or tunnel. It takes about 15 minutes. A desktop computer sleeps and restarts, so use a Linux machine for an instance people use every day.
What this changes
Заголовок раздела «What this changes»- One container called
fluxer-fluxer-1, which isfluxertodocker composecommands in that folder, and one volume calledfluxer-data, inside Docker Desktop’s Linux VM. Resetting Docker Desktop to factory defaults deletes the volume. - Port 8080 on
127.0.0.1, and 7881 on TCP and 7882 on UDP for voice.
Before you start
Заголовок раздела «Before you start»- Check the requirements.
- On a Mac, give the VM at least 4 GB of memory and 2 CPUs in Docker Desktop’s settings, under “Resources”. On Windows, WSL 2 gives Docker half the PC’s memory by default. To set it yourself, add
memory=4GBunder[wsl2]in%UserProfile%\.wslconfigand runwsl --shutdown. - Turn on “Start Docker Desktop when you sign in to your computer” in Docker Desktop’s settings, because Squad stops whenever Docker Desktop does.
- A computer at home usually has no public address, and ports 80 and 443 belong to the router. Put a tunnel such as Cloudflare Tunnel or your own reverse proxy in front of Squad, and forward only the two voice ports on your home router to this computer.
-
Open Terminal, make a folder and download the two files into it.
Для Squad скачайте исходники и конфигурацию сборки. Команда получения готового пакета для этой платформы отсутствует.
lslists both files. -
Set your domain, tunnel mode and voice address in
fluxer.env, then change the ports incompose.yamlfor a tunnel or proxy so they publish port 8080.fluxer.env FLUXER_DOMAIN=chat.example.comFLUXER_EDGE_MODE=tunnelFLUXER_LIVEKIT_NODE_IP=203.0.113.10Set
FLUXER_LIVEKIT_NODE_IPto your home’s public IPv4 address, and forward TCP 7881 and UDP 7882 on your router to this computer on your network.Behind your own proxy, set the edge mode to
proxyin place oftunnel.The
portslist incompose.yamlhas127.0.0.1:8080:8080. -
Start Squad and print the setup token.
Окно терминала docker compose up -ddocker compose exec fluxer fluxerd setup-tokenOnce your tunnel or proxy points at
http://127.0.0.1:8080, your domain shows the setup wizard when you open it in your web browser.
Windows
Заголовок раздела «Windows»Use Docker Desktop with the WSL 2 backend, and run every command in a WSL terminal such as Ubuntu from the Microsoft Store.
-
In the WSL terminal, make a folder in your Linux home and download the two files.
Для Squad скачайте исходники и конфигурацию сборки. Команда получения готового пакета для этой платформы отсутствует.
Keep the folder under
~, never under/mnt/c.lslists both files. -
Set up
fluxer.envandcompose.yamlas in step 2 for macOS. -
Start Squad and print the setup token.
Окно терминала docker compose up -ddocker compose exec fluxer fluxerd setup-tokenOnce your tunnel or proxy points at
http://127.0.0.1:8080, your domain shows the setup wizard when you open it in your web browser.
Upgrade
Заголовок раздела «Upgrade»The upgrade works as on Linux, in Terminal or WSL. In the folder with compose.yaml, this changes the version on the image line, then pulls and starts the new release. Once you turn on the release check, the admin panel’s Updates page shows this command with the newest version number already filled in.
Для Squad скачайте исходники и конфигурацию сборки. Команда получения готового пакета для этой платформы отсутствует.