Analytics cookies only (Google Analytics, PostHog). No ad networks, no cross-site tracking. See our privacy policy.
BS
Self-host Bark Server
updated Nov 2026deployed by usprices checked · Jul 2026Install verified on Ubuntu 26.04 · Nov 2026 · how we test
We earn commissions when you shop through the links below. Full disclosure →
The server half of Bark, an iOS app for custom push notifications. Scripts send a GET or POST (or call an MCP endpoint) with a title, body, group, icon, sound, URL or severity level, and the server forwards it to the registered device through Apple's APNs. A single Go binary that stores devices in an embedded Bbolt file, with MySQL and basic auth as options.
Pick Bark Server when you use an iPhone and want script and server alerts delivered by your own relay. The Bark iOS app registers a device with the server and gets a device key; you then send a GET or POST (or call the `/mcp` endpoint) with a title, body, group, icon, sound, URL or severity level, and the server hands the message to Apple's push service, which the app README says it uses so the device battery is not drained. It is MIT-licensed Go. Our snippet is `deploy/docker-compose.yaml` with the image pinned to `finab/bark-server:v2.4.0` (released 2026-11-06) and the data directory moved into a named volume. Neither README gives a RAM figure, so our 64 MB floor is an estimate. In the catalog, ntfy and Gotify are push servers with their own clients, and Apprise API fans one request out to many services; Bark Server is only a relay for one iOS app, so it fits if you already use that app and need nothing else.
What you need
Any VPS with at least 64 MB of RAM
A domain you control — most self-hosted setups need HTTPS in front of them
Paid link — we earn a commission if you shop through it.
Install
Run these commands on your server:
# Bark server — push relay for the Bark iOS app — adapted from deploy/docker-compose.yaml, image pinned to v2.4.0, data in a named volume instead of ./datamkdir bark-server && cd bark-servercat > docker-compose.yml <<'EOF'services: bark-server: image: finab/bark-server:v2.4.0 container_name: bark-server restart: always volumes: - bark-data:/data ports: - "8080:8080"volumes: bark-data:EOFdocker compose up -dtimeout 300 bash -c 'until curl -fsS -o /dev/null http://localhost:8080/healthz; do sleep 3; done'# → http://SERVER_IP:8080 (enter this address as the server in the Bark iOS app; check it with: curl http://SERVER_IP:8080/info)
Bark's server README, API docs and source flag these before you rely on it:
non-negotiablePushes reach the phone through Apple's APNs, so the server needs outbound internet access and the client is the Bark iOS app. Our run only checks that the server starts and answers /healthz; we did not register a device or send a push. The server signs pushes with the Bark developer's APNs key and app topic compiled into the binary, so it can only reach the official Bark app and depends on that key staying valid.
non-negotiableBy default there is no authentication: the server logs Bark Server Has No Basic Auth and anyone who can reach it can register devices. Setting BARK_SERVER_BASIC_AUTH_USER and BARK_SERVER_BASIC_AUTH_PASSWORD turns on Basic auth, which still leaves /ping, /register and /healthz open. Our snippet leaves auth off.
non-negotiableA push needs only the device_key for the target device, so treat device keys as secrets. The API also accepts a ciphertext field for encrypted pushes.
non-negotiableDevices and keys are stored in an embedded Bbolt file under /data (the bark-data volume); MySQL is an option through BARK_SERVER_DSN. Back the volume up, or devices have to register again.
non-negotiableThe server speaks plain HTTP unless you pass BARK_SERVER_CERT and BARK_SERVER_KEY, so put a TLS reverse proxy in front for use outside a trusted network. The image sets TZ to Asia/Shanghai by default, and Docker Hub lists amd64, arm64 and arm builds for this tag.
Bark Server used 8 MB of RAM at idle on GCP e2-standard-2 · Ubuntu 26.04 LTS · Docker 29.9.3 (first boot, measured Nov 2026). We list a minimum of 64 MB.
Is the Bark Server install snippet verified?
The Bark Server install snippet is marked verified on Ubuntu 26.04 (Nov 2026).