Spaces:
Paused
Expose Perplexica to a network
This guide will show you how to make Perplexica available over a network. Follow these steps to allow computers on the same network to interact with Perplexica. Choose the instructions that match the operating system you are using.
Windows
Open PowerShell as Administrator
Navigate to the directory containing the
docker-compose.yamlfileStop and remove the existing Perplexica containers and images:
docker compose down --rmi allOpen the
docker-compose.yamlfile in a text editor like Notepad++Replace
127.0.0.1with the IP address of the server Perplexica is running on in these two lines:args: - NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api - NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001Save and close the
docker-compose.yamlfileRebuild and restart the Perplexica container:
docker compose up -d --build
macOS
Open the Terminal application
Navigate to the directory with the
docker-compose.yamlfile:cd /path/to/docker-compose.yamlStop and remove existing containers and images:
docker compose down --rmi allOpen
docker-compose.yamlin a text editor like Sublime Text:nano docker-compose.yamlReplace
127.0.0.1with the server IP in these lines:args: - NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api - NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001Save and exit the editor
Rebuild and restart Perplexica:
docker compose up -d --build
Linux
Open the terminal
Navigate to the
docker-compose.yamldirectory:cd /path/to/docker-compose.yamlStop and remove containers and images:
docker compose down --rmi allEdit
docker-compose.yaml:nano docker-compose.yamlReplace
127.0.0.1with the server IP:args: - NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api - NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001Save and exit the editor
Rebuild and restart Perplexica:
docker compose up -d --build