---
title: "Deploy Dify v1.17.0"
description: "Open-source AI platform with BaaS & LLMOps for all users."
category: "AI/ML"
url: https://railway.com/deploy/TiT2V6
---

# Deploy Dify v1.17.0

Open-source AI platform with BaaS & LLMOps for all users.

**[Deploy Dify v1.17.0 on Railway](https://railway.com/template/TiT2V6)**

- **Creator:** RailGenius
- **Category:** AI/ML
- **Total deploys:** 473

## Template content

### Weaviate https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/publication/logo/35d9c94b-b826-4592-8ada-f26fb501b5d4/weaviate-logo-light-transparent.png

- **Image:** semitechnologies/weaviate:1.32.19

### Storage provision https://res.cloudinary.com/h5kvzw/image/upload/v1706062979/MINIO_Bird_vbtpet.png

- **Image:** minio/mc:RELEASE.2025-02-21T16-00-46Z
- **Start command:** `/bin/sh -c "sleep 10 && /usr/bin/mc config host add minio ${MINIO_ENDPOINT} ${MINIO_ROOT_USER} ${MINIO_ROOT_PASSWORD} && /usr/bin/mc mb minio/${MINIO_BUCKET} && /usr/bin/mc anonymous set public minio/${MINIO_BUCKET}/public && exit 0"`

### Sandbox https://avatars.githubusercontent.com/u/127165244?v=4

- **Image:** langgenius/dify-sandbox:0.2.15

### Worker https://avatars.githubusercontent.com/u/127165244?v=4

- **Image:** langgenius/dify-api:1.17.0

### Api https://avatars.githubusercontent.com/u/127165244?v=4

- **Image:** langgenius/dify-api:1.17.0
- **Health check:** /health
- **Public domain:** Yes

### Storage https://res.cloudinary.com/h5kvzw/image/upload/v1706062979/MINIO_Bird_vbtpet.png

- **Image:** minio/minio:RELEASE.2025-02-28T09-55-16Z
- **Start command:** `/bin/sh -c "exec minio server --address [::]:$MINIO_PRIVATE_PORT $RAILWAY_VOLUME_MOUNT_PATH"`

### plugin-daemon https://avatars.githubusercontent.com/u/127165244?v=4

- **Image:** langgenius/dify-plugin-daemon:0.6.10-local

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** postgres:15-alpine
- **Start command:** `/bin/sh -c "unset PGPORT; docker-entrypoint.sh postgres --port=5432"`

### Redis https://devicons.railway.app/i/redis.svg

- **Image:** redis:6-alpine

### Web https://avatars.githubusercontent.com/u/127165244?v=4

- **Image:** langgenius/dify-web:1.17.0
- **Health check:** /
- **Public domain:** Yes

## Documentation

After deploying Dify for the first time, do not start the admin installation yet.

Before creating the root admin account, you must set up custom domains for both the Web service and the API service. You must also set the cookie domain so authentication works correctly across subdomains.

### 1. Add custom domains

Assign a custom domain to:
	•	The Web service (e.g., app.example.com)
	•	The API service (e.g., api.example.com)

Railway will automatically update the environment variables when you attach these custom domains.

### 2. Configure DNS

Add the DNS records provided by Railway.

Once DNS has propagated, click each custom domain link in the Railway dashboard to confirm they load correctly:
	•	The Web custom domain should display the Dify UI.
	•	The API custom domain should return a normal API response.

Continue only once both domains work.

### 3. Set the cookie domain (API service only)

To allow login, sessions, and CSRF protection to work across subdomains, manually set the cookie domain in the API service environment variables:

COOKIE_DOMAIN=.yourdomain.com

Example
```
COOKIE_DOMAIN=.example.com
```

This value is not injected automatically. You must set it manually.
Without the correct cookie domain, session cookies and CSRF tokens will not work.

### 4. Redeploy both services

Redeploy both services:
	•	API service
	•	Web service

This ensures both services rebuild using the new custom domains and the correct cookie domain.

### 5. Proceed with admin setup

Once redeployments are complete, visit your Web custom domain (e.g., https://app.example.com).
You will see the installation screen and can safely create the root admin account.

With the custom domains and cookie domain configured, authentication, cookies, and CSRF validation will work correctly.


**Dify** is an open-source platform for building AI applications. We combine Backend-as-a-Service and LLMOps to streamline the development of generative AI solutions, making it accessible to both developers and non-technical innovators.


**Dify integrates:**
- Support for mainstream LLMs
- An intuitive Prompt orchestration interface
- High-quality RAG engines
- A flexible AI Agent framework
- An Intuitive Low-code Workflow
- Easy-to-use interfaces and APIs

With Dify, you can skip the complexity and focus on what matters most - creating innovative AI applications that solve real-world problems.

## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [stella](https://railway.com/deploy/stella) — Self-host stella with web, API, Postgres, Redis, and object storage.
- [Hermes Agent | OpenClaw Alternative with Dashboard](https://railway.com/deploy/hermes-agent-or-openclaw-alternative-wit) — Self-Hosted Hermes AI Agent for Telegram, Discord & Slack

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