---
title: "Deploy Nacos"
description: "Nacos 3.3 service discovery and config center with MySQL, auth on"
category: "Other"
url: https://railway.com/deploy/nacos
---

# Deploy Nacos

Nacos 3.3 service discovery and config center with MySQL, auth on

**[Deploy Nacos on Railway](https://railway.com/template/nacos)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/nacos/manifest.json

- **Creator:** Agaz Self-Host
- **Category:** Other

## Template content

### Nacos https://raw.githubusercontent.com/alibaba/nacos/3.3.0/console-ui-next/public/img/nacos-icon.png

- **Source:** https://github.com/aalfath/nacos-railway-template
- **Health check:** /v3/console/health/readiness
- **Public domain:** Yes

### MySQL https://devicons.railway.app/i/mysql.svg

- **Image:** mysql:8
- **Start command:** `docker-entrypoint.sh mysqld --innodb-use-native-aio=0 --disable-log-bin --performance_schema=0 --innodb-buffer-pool-size=128M`

## Documentation

# Deploy and Host Nacos on Railway

Nacos is Alibaba's open-source platform for service discovery, dynamic configuration and service management, now also an AI agent and MCP registry. Microservices register with it and read their configuration from it, and you manage namespaces, configs, services and users in its web console.

## About Hosting Nacos

This template runs Nacos 3.3.0 in standalone mode with Railway MySQL as its store. On every start, a small script applies the MySQL schema that ships with the image, waits for the database, and on the first boot creates the `nacos` admin from a generated password, so nobody can claim the console before you. Token signing key and server identity are generated per deploy. Nacos's embedded Raft data (persistent service instances) lives on a volume. The console is served on the public domain; clients use port 8848 and gRPC 9848 over the private network. Nacos needs about 1 GB of RAM.

## Common Use Cases

* Service registry for Spring Cloud Alibaba, Dubbo, Go or Python microservices
* Central, versioned configuration with live push to running applications
* Registry for MCP servers, AI agents and prompts

## Dependencies for Nacos Hosting

* Nacos server, built from the template's GitHub repo (official image pinned by digest)
* MySQL (Railway's MySQL service) for configs, users and history

### Deployment Dependencies

* [Nacos on GitHub](https://github.com/alibaba/nacos) and [release 3.3.0](https://github.com/alibaba/nacos/releases/tag/3.3.0)
* [Nacos Docker quick start](https://nacos.io/en/docs/latest/quickstart/quick-start-docker/)
* [Template repo](https://github.com/aalfath/nacos-railway-template)

### Implementation Details

Services:

* **Nacos**: console on the public domain, health check `/v3/console/health/readiness`, volume on `/home/nacos/data`.
* **MySQL**: Railway MySQL with a volume; holds every config, namespace, user and role.

After deploy: open the public URL and sign in as `nacos` with the `NACOS_ADMIN_PASSWORD` value from the Nacos service's Variables tab. Point clients inside the project at `${{Nacos.RAILWAY_PRIVATE_DOMAIN}}:8848` with a user you create in the console.

Memory: Nacos uses about 600 MB at idle, so give the service at least 1 GB. It does not run within the 0.5 GB per-service limit of Railway's Free plan. To give it more memory, raise the service's RAM and set `NACOS_JVM_XMX` (default `256m`).

Updates: the Nacos service builds from `aalfath/nacos-railway-template`. When we bump the pinned version, Railway shows you an "update available" notice and you choose when to apply it; read the repo's `CHANGELOG.md` first.

## Why Deploy Nacos 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 Nacos 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) — Self-hosted virtual tabletop for role-playing games (license required)
- [Double Commander in your browser](https://railway.com/deploy/double-commander-in-your-browser) — The Double Commander file manager in the cloud, from any device

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