---
title: "Deploy VictoriaLogs logging"
description: "Authenticated VictoriaLogs with durable 14-day log storage."
category: "Observability"
url: https://railway.com/deploy/victorialogs-logging
---

# Deploy VictoriaLogs logging

Authenticated VictoriaLogs with durable 14-day log storage.

**[Deploy VictoriaLogs logging on Railway](https://railway.com/template/victorialogs-logging)**

- **Creator:** Anton Orel's Projects
- **Category:** Observability
- **Total deploys:** 1

## Template content

### VictoriaLogs

- **Image:** victoriametrics/victoria-logs:v1.52.0@sha256:47b820890d64c4575a2a0a46415dcd8a4fd59a0f1fcd6a377693d7aea639442e
- **Start command:** `/victoria-logs-prod -storageDataPath=/vlogs -retentionPeriod=14d -loggerFormat=json`
- **Health check:** /health

### VictoriaLogs Gateway

- **Image:** caddy:2.11.4-alpine@sha256:5f5c8640aae01df9654968d946d8f1a56c497f1dd5c5cda4cf95ab7c14d58648
- **Start command:** `/bin/sh -ec 'password_hash="$(caddy hash-password --plaintext "$GATEWAY_PASSWORD")"; printf "%s\n" "$GATEWAY_CONFIG" | sed -e "s|__USERNAME__|$GATEWAY_USERNAME|g" -e "s|__PASSWORD_HASH__|$password_hash|g" -e "s|__UPSTREAM__|$UPSTREAM|g" >/tmp/Caddyfile; exec caddy run --config /tmp/Caddyfile --adapter caddyfile'`
- **Health check:** /healthz
- **Public domain:** Yes

## Documentation

# Deploy and Host VictoriaLogs on Railway

## About Hosting VictoriaLogs

VictoriaLogs ingests and queries structured logs through Elasticsearch, Loki, OpenTelemetry, and native HTTP APIs. This template runs the official 1.52.0 single-node release with a protected UI and 14-day durable retention.

## Why Deploy VictoriaLogs on Railway

Railway provisions private database networking, a generated Basic Auth gateway, dependency-aware health checks, and a 5 GB persistent volume. Applications send logs to one HTTPS endpoint while storage remains private.

## Common Use Cases

- Centralize application and infrastructure logs.
- Query structured events with LogsQL.
- Receive Loki, Elasticsearch, or OpenTelemetry HTTP traffic.

## Dependencies for VictoriaLogs Hosting

The template uses VictoriaLogs, Caddy, and one Railway volume.

### Deployment Dependencies

- [VictoriaLogs](https://victoriametrics.com/products/victorialogs/) provides ingestion, storage, querying, and the web UI.
- [Caddy](https://caddyserver.com) protects the public endpoint.
- [Railway](https://railway.com) provides private networking, generated credentials, and persistent storage.


## Similar templates

- [Pyroscope profiling](https://railway.com/deploy/pyroscope-profiling) — Protected continuous profiling with durable Pyroscope storage.
- [SigOnly](https://railway.com/deploy/sigonly) — Deploy SigNoz with a working demo app & config in one click
- [Unwrapped Spotify Music Stats](https://railway.com/deploy/wide-bold) — Unwrapped Spotify Music Stats, Estatísticas de músicas disponíveis

Open this page in a browser: https://railway.com/deploy/victorialogs-logging
