---
title: "Deploy DailyTxT"
description: "DailyTxT is an encrypted Diary/Journal WebApp"
category: "Other"
url: https://railway.com/deploy/dailytxt
---

# Deploy DailyTxT

DailyTxT is an encrypted Diary/Journal WebApp

**[Deploy DailyTxT on Railway](https://railway.com/template/dailytxt)**

- **Creator:** Karim Zarzour's Projects
- **Category:** Other

## Template content

### DailyTxT https://raw.githubusercontent.com/PhiTux/DailyTxT/980bdbdd8fa5be04618d0981827458fec0dc4442/frontend/static/favicon.svg

- **Image:** phitux/dailytxt:latest
- **Public domain:** Yes

## Documentation

# Deploy and Host DailyTxT on Railway

DailyTxT is an encrypted, self-hosted diary and journaling web application. It encrypts entries and uploaded files before storing them on disk, supports Markdown, tagging, search, multi-user accounts with per-user keys, and includes a lightweight admin panel for managing access.

## About Hosting DailyTxT

DailyTxT runs as a single Docker-based web service and does not require an external database. All data is stored as encrypted JSON files on disk, making deployment simple and portable. On Railway, you attach one persistent volume to retain journal entries and uploads across deploys, set a required secret token, and optionally configure admin access and registration behavior. A common setup is to temporarily enable registration to create initial users, then disable it and manage users via the admin panel.

## Common Use Cases

- Private, encrypted daily journaling
- Multi-user personal or family journals on a shared instance
- Long-term note keeping with portable, file-based storage

## Dependencies for DailyTxT Hosting

- DailyTxT Docker image (single web service)
- One persistent volume for encrypted data storage

### Deployment Dependencies

- Source repository: https://github.com/PhiTux/DailyTxT  
- Docker image: https://hub.docker.com/r/phitux/dailytxt/

### Implementation Details 

**Persistent storage**
- Mount the Railway volume at: `/data`

**Container port**
- The application listens on internal port `80`

**Environment variables**
- `SECRET_TOKEN` (required): secret token used by the application
- `ADMIN_PASSWORD` (recommended): password for the admin panel
- `ALLOW_REGISTRATION` (recommended): enable only during user onboarding
- `LOGOUT_AFTER_DAYS` (optional): session expiration in days
- `INDENT` (optional): pretty-print stored JSON files
- `BASE_PATH` (optional): required only if hosting under a subpath

## Why Deploy DailyTxT 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 DailyTxT 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.


## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/dailytxt
