File size: 1,126 Bytes
bd66f00
869d71f
 
 
 
bd66f00
869d71f
bd66f00
 
 
dd55fa1
869d71f
dd55fa1
 
 
 
869d71f
6298fab
869d71f
6298fab
 
dd55fa1
6298fab
869d71f
dd55fa1
869d71f
dd55fa1
 
 
 
 
 
 
 
 
869d71f
dd55fa1
869d71f
dd55fa1
869d71f
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
title: Postgres Database
emoji: ๐Ÿ˜
colorFrom: blue
colorTo: indigo
sdk: docker
app_port: 7860
pinned: false
---

# n8n + PostgreSQL on Hugging Face Spaces

This Space runs **n8n** (Workflow Automation) and **PostgreSQL** together in a single container.

- **n8n**: Accessible via the Space URL (Port 7860).
- **PostgreSQL**: Running internally on Port 5432.

## โš ๏ธ Note: Ephemeral Storage

You have chosen to use the container's built-in storage.
**Warning**: This storage is **ephemeral**.
- If the Space restarts (which happens after 48 hours of inactivity or during updates), **ALL DATA (Workflows + DB)** will be lost.
- This setup is suitable for testing, demos, or temporary data.

## Getting Started

1.  Wait for the Space to build.
2.  Open the Space URL.
3.  Set up your n8n owner account.
4.  To connect to the database in n8n, use:
    - **Host**: `localhost`
    - **Port**: `5432`
    - **Database**: `app_db`
    - **User**: `app_user`
    - **Password**: `app_password`

## Sample Workflow

A sample workflow file `workflow.json` is included in the files. You can import it to test the connection.