Deploy Shynet
Privacy-friendly web analytics without cookies. Pinned Shynet + Postgres.
Just deployed
/var/lib/postgresql/data
Just deployed
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
- Shynet source and docs: https://github.com/milesmcc/shynet
- Shynet usage guide: https://github.com/milesmcc/shynet/blob/master/GUIDE.md
- Release notes: https://github.com/milesmcc/shynet/releases/tag/v0.14.0
- Template repository: https://github.com/aalfath/shynet-railway-template
Implementation Details
After the deploy finishes:
- Open the Shynet service's URL and log in with your
ADMIN_EMAILand theADMIN_PASSWORDshown in the service's Variables tab. Change the password in Shynet afterwards. - Click "+ Create Service", enter your site's name and URL, and paste the tracking snippet Shynet shows you into your site's HTML.
- Optional: set
EMAIL_HOST,EMAIL_PORT,EMAIL_HOST_USER,EMAIL_HOST_PASSWORD,EMAIL_USE_SSLandSERVER_EMAILfor password-reset and invite emails. Other settings (TIME_ZONE,BLOCK_ALL_IPS,SHOW_THIRD_PARTY_ICONSand more) are listed in Shynet's TEMPLATE.env. - Custom domain: add it to
ALLOWED_HOSTS, andhttps://plus the domain toCSRF_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
ADMIN_EMAIL
Email of the first Shynet admin, created on the first deploy. Log in with it.

