Deploy Shynet

Privacy-friendly web analytics without cookies. Pinned Shynet + Postgres.

Deploy Shynet

/var/lib/postgresql/data

Deploy and Host Shynet on Railway

Shynet is an open-source, self-hosted web analytics server that tracks visitors without cookies and without collecting personal data. It records page views, sessions, bounce rate, load time, referrers, locations, browsers and devices, works without JavaScript through a tracking pixel, and serves many sites and users from one dashboard.

About Hosting Shynet

Shynet is a Django app served by gunicorn, with Postgres for all its data. This template deploys Shynet 0.14.0 (the official image, pinned by digest) built from a public GitHub repository, plus Railway's Postgres on a volume. On start it adds the Railway domain to Django's allowed hosts and trusted origins, waits for Postgres, runs the migrations and creates your admin account once, from the email you enter and a generated password. The only value you enter is the admin email. Sign-ups are off, and the app refuses to start without its secret key. Health check: /healthz/.

Common Use Cases

  • Privacy-friendly analytics for blogs, docs and marketing sites, with no cookie banner needed for tracking
  • One dashboard for many websites, shared with teammates or clients as collaborators
  • Replacing Google Analytics with traffic data that stays in your own database

Dependencies for Shynet Hosting

  • Postgres (included; Railway's Postgres on a volume)
  • A public domain (included; Railway generates one, custom domains work too)

Deployment Dependencies

Implementation Details

After the deploy finishes:

  1. Open the Shynet service's URL and log in with your ADMIN_EMAIL and the ADMIN_PASSWORD shown in the service's Variables tab. Change the password in Shynet afterwards.
  2. Click "+ Create Service", enter your site's name and URL, and paste the tracking snippet Shynet shows you into your site's HTML.
  3. Optional: set EMAIL_HOST, EMAIL_PORT, EMAIL_HOST_USER, EMAIL_HOST_PASSWORD, EMAIL_USE_SSL and SERVER_EMAIL for password-reset and invite emails. Other settings (TIME_ZONE, BLOCK_ALL_IPS, SHOW_THIRD_PARTY_ICONS and more) are listed in Shynet's TEMPLATE.env.
  4. Custom domain: add it to ALLOWED_HOSTS, and https:// plus the domain to CSRF_TRUSTED_ORIGINS. The Railway domain is added for you.

Updates: when the template repository bumps the Shynet version, Railway shows an "update available" notice on your project and you choose when to apply it. Read the repository's CHANGELOG.md first; migrations run on every start.

Why Deploy Shynet on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Shynet on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

More templates in this category

View Template
Plausible WordPress
Cookie-free WordPress stats from your own Plausible

onepush
0
View Template
Typesense Multilingual
Locale-aware multilingual search with Typesense

onepush
0
View Template
Formbricks
Surveys, NPS and in-app feedback on your own Postgres, Hub and Cube

Two Workspaces
3