---
title: "Discussion on \"How to install self-hosted Dify with Docker and HTTPS on a VPS\" | Hashnode"
description: "Discussion on \"How to install self-hosted Dify with Docker and HTTPS on a VPS\". This guide installs self-hosted Dify 1.20.0 on an Ubuntu 24.04 VPS with Docker Compose, pinned tags for every image, rotated production secrets, and Caddy 2.11.9 handling automatic HTTPS. The setup di"
url: "https://hashnode.com/posts/how-to-install-self-hosted-dify-with-docker-and-https-on-a-vps/6b12916a182d46f0864f1b47"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to install self-hosted Dify with Docker and HTTPS on a VPS](https://nuvits.hashnode.dev/how-to-install-self-hosted-dify-with-docker-and-https-on-a-vps?utm_source=hashnode&utm_medium=feed)

This guide installs self-hosted Dify 1.20.0 on an Ubuntu 24.04 VPS with Docker Compose, pinned tags for every image, rotated production secrets, and Caddy 2.11.9 handling automatic HTTPS. The setup di

12h ago · 11 min read · nuvits.hashnode.dev  
Read the article

-   [#dify](https://hashnode.com/tag/dify)
-   [#docker](https://hashnode.com/tag/docker)
-   [#ai](https://hashnode.com/tag/ai)
-   [#vps](https://hashnode.com/tag/vps)

## Written by

[Fernando Chagas](https://hashnode.com/@fernandochagas)

@fernandochagas

  
[View profile](https://hashnode.com/@fernandochagas)

Building Nuvits: VPS in Brazilian reais and MCP for AI agents

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
