---
title: "Deploy Portainer Server"
description: "Manage your containers with ease (Community Edition, w/ Edge Agents)"
category: "Other"
url: https://railway.com/deploy/portainer-server
---

# Deploy Portainer Server

Manage your containers with ease (Community Edition, w/ Edge Agents)

**[Deploy Portainer Server on Railway](https://railway.com/template/portainer-server)**

- **Creator:** Six
- **Category:** Other
- **Total deploys:** 4

## Template content

### Portainer Tunnel https://cdn.prod.website-files.com/685ddfde8f36a9682093fa2b/685ddfde8f36a9682093fad7_Portainer-favicon_v2.jpg

- **Image:** ghcr.io/brody192/railway-public-to-private-proxy
- **Public domain:** Yes

### Portainer Server https://cdn.prod.website-files.com/685ddfde8f36a9682093fa2b/685ddfde8f36a9682093fad7_Portainer-favicon_v2.jpg

- **Image:** portainer/portainer-ce:lts
- **Public domain:** Yes

## Documentation

# Deploy and Host Portainer Server on Railway

Portainer Server is an open-source lightweight management UI that allows you to easily manage your Docker containers, images, networks, and volumes. It provides a simple and intuitive interface for both beginners and experienced users to interact with their Docker environments.

## About Hosting Portainer Server

Hosting Portainer Server involves deploying the application on a cloud platform, configuring the necessary resources, and ensuring that it can communicate with your Docker environment. This typically includes setting up a container for Portainer, configuring storage for persistent data, and managing access controls for users, and opening the Portainer Tunnel for any Edge Agents you plan to configure.

## Common Use Cases

- Managing Docker containers and images
- Monitoring container performance and resource usage
- Managing Kubernetes clusters

## Dependencies for Portainer Server Hosting

- Portainer Server

### Deployment Dependencies

To configure Portainer to connect to an Edge Agent, there are some manual steps you must do:
First, create the Edge Agent configuration in the Portainer UI. This will generate a join token for you, and a command to deploy the agent on your server.
Next, you will need to decode the join token. Copy it and paste it into your base64 decoder of choice (we used https://www.base64decode.org/). Decode the token, and look for the second phrase in between the bar characters (|):
`https://portainer-server.up.railway.app|**portainer-server.up.railway.app:8000**|whatever|whatever`

Replace the part highlighted with **bold** with the URL for the Portainer Tunnel in this format:
`https://portainer-tunnel.up.railway.app`
Make sure you add `https://` in the beginning, and drop the `:8000` at the end.

Finally, re-encode the join token to base64 and copy it and replace the original join token in the command you were given to deploy the Edge Agent. Keep in mind to **NOT COPY ANY EQUAL SIGNS (=) AT THE END OF THE BASE64 OUTPUT**, or you will get errors. This is because Portainer uses raw base64 encoding, which doesn't include padding (the equal signs).

## Why Deploy Portainer Server 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 Portainer Server 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) — [Jul'26] 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/portainer-server
