---
title: "Discussion on \"Rails 8 on a free container: the SQLite default that erases your data, and the Dockerfile Rails already gave you\" | Hashnode"
description: "Discussion on \"Rails 8 on a free container: the SQLite default that erases your data, and the Dockerfile Rails already gave you\". Rails 8 defaults to SQLite in production, which a container's ephemeral filesystem quietly erases. Switching to PostgreSQL, using the Dockerfile Rails already generates, sizing Puma for 512 MB, and running Solid Queue on a container that sleeps."
url: "https://hashnode.com/posts/rails-free-container-puma-postgres/6b012583cf1fd4deb82c8eba"
---

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

Discussion

# [Rails 8 on a free container: the SQLite default that erases your data, and the Dockerfile Rails already gave you](https://snapdeploy.hashnode.dev/rails-free-container-puma-postgres?utm_source=hashnode&utm_medium=feed)

Rails 8 defaults to SQLite in production, which a container's ephemeral filesystem quietly erases. Switching to PostgreSQL, using the Dockerfile Rails already generates, sizing Puma for 512 MB, and running Solid Queue on a container that sleeps.

5d ago · 7 min read · snapdeploy.hashnode.dev  
Read the article

-   [#rails](https://hashnode.com/tag/rails)
-   [#ruby](https://hashnode.com/tag/ruby)
-   [#docker](https://hashnode.com/tag/docker)
-   [#postgresql](https://hashnode.com/tag/postgresql)

## Written by

[SnapDeploy](https://hashnode.com/@SnapDeploy)

@SnapDeploy · India

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

From source code to infrastructure in 5 minute, not hours

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
