Server Setup
Deploy your own Potok server using Docker.
Potok is fully self-hosted. This guide walks you through the process of getting the server running with Docker Compose.
Prerequisites
- Docker and Docker Compose installed on your server
- A domain or IP address for your server (optional but recommended)
1. Clone the repository
git clone https://github.com/mtiluk/Potok.git
cd Potok2. Configure environment variables
Copy the example env file and edit it:
cp .env.example .envOpen .env and set your values:
# Server address and port
PORT=8080
HOST=localhost
# Database connection
DATABASE_PATH=./data/potok.db
MIGRATIONS_PATH=./migrations
# Storage path for vault files
STORAGE_PATH=./uploads3. Start the server
docker compose up -dThis will start the potok server container.
Verify everything is running:
docker compose ps4. Verify the server
curl http://localhost:8080/health5. Connect the CLI
On your machine, run:
potok initEnter your server URL (e.g. http://your-server-ip:8080) and your API_KEY
What's next?
- Quickstart — Connect the CLI and sync your first vault
- Environment Variables — Full reference of all server configuration options
- Database — Migrations, backups, and supported databases