---
title: "Discussion on \"Deploying Rails 8 Applications: A Complete Guide with Docker, Kamal, and Cloudflare\" | Hashnode"
description: "Discussion on \"Deploying Rails 8 Applications: A Complete Guide with Docker, Kamal, and Cloudflare\". Learn how to deploy Rails 8 apps using Docker, Kamal, and PostgreSQL on Hetzner servers with Cloudflare DNS. A complete production setup guide."
url: "https://hashnode.com/posts/deploy-rails-8-docker-kamal-production-guide/677f58033dfcb548f2d4637e"
---

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

Discussion

# [Deploying Rails 8 Applications: A Complete Guide with Docker, Kamal, and Cloudflare](https://sulmanweb.com/deploy-rails-8-docker-kamal-production-guide?utm_source=hashnode&utm_medium=feed)

Learn how to deploy Rails 8 apps using Docker, Kamal, and PostgreSQL on Hetzner servers with Cloudflare DNS. A complete production setup guide.

Jan 9, 2025 · 4 min read · sulmanweb.com  
Updated Jan 21, 2025  
Read the article

## Written by

[Sulman Baig](https://hashnode.com/@sulmanweb)

@sulmanweb · Multan, Pakistan

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

CTO & Co-founder @pageinteract.com #RoR #VueJS

Senior Software Engineer with 12 years of expertise in Ruby on Rails and Vue.js, specializing in health, e-commerce, staffing, and transport. Experienced in software development and version analysis.

## Responses 1

Markdown supported · ⌘↵ to post

[Sulman Baig](https://hashnode.com/@sulmanweb)

[Jan 22, 2025](https://hashnode.com/posts/deploy-rails-8-docker-kamal-production-guide/677f58033dfcb548f2d4637e/comment/67905bb4eb6fc91995977122)

[Wilson Mayers](https://hashnode.com/@wilsonmayers) Thanks for the appreciation.

I haven't came across the issue you are mentioning but keep in mind my postgres user is `postgres` and I am only getting password of db in this tutorial and username is hardcoded. Also please make sure your database.yml file has:

```
<% if ENV["DB_HOST"] %>
host: <%= ENV["DB_HOST"] %>
username: postgres
<% end %>
```

for production db.

Hoping this resolves your issue. If issue still persists, contact me and may be we can come to some solution together.

[Wilson Mayers](https://hashnode.com/@wilsonmayers)

[Jan 21, 2025](https://hashnode.com/posts/deploy-rails-8-docker-kamal-production-guide/677f58033dfcb548f2d4637e/comment/678ffa7c19d84f1a5ad8e099)

Hello! Congrats on this great text. I was trying to follow your process, but I'm having a problem with accessing app to postgres. every time, in the end of deployment process, I get a message saying the authentication. I'm sure about the password is being passed, since I'm having the error about username/password not matching. Did you pass anything like this?
