You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This sample shows how to get a [n8n](https://n8n.io/) app up using PostgreSQL as a database and running with Defang. The original sample can be found [here](https://github.com/n8n-io/n8n-hosting/tree/main/docker-compose/withPostgres). The official n8n guide for setting up with PostgreSQL [here](https://docs.n8n.io/hosting/installation/server-setups/docker-compose/) does not work with Defang. To use the version compatible with Defang, please refer to this sample instead.
5
+
This sample shows how to get a [n8n](https://n8n.io/) app up using PostgreSQL as a database and running with Defang. The original sample can be found [here](https://github.com/n8n-io/n8n-hosting/tree/main/docker-compose/withPostgres). The official n8n guide for setting up with PostgreSQL [here](https://docs.n8n.io/hosting/installation/server-setups/docker-compose/) does not work with Defang. The reason the sample does not work is because it relies on certain Docker features that are not supported by Defang, which are volumes. To use the version compatible with Defang, please refer to this sample instead.
6
+
7
+
This sample demonstrates how to run an [n8n](https://n8n.io/) app with PostgreSQL as the database using Defang. The original sample can be found [here](https://github.com/n8n-io/n8n-hosting/tree/main/docker-compose/withPostgres). However, the official n8n [guide](https://docs.n8n.io/hosting/installation/server-setups/docker-compose/) for setting up with PostgreSQL is not compatible with Defang. The incompatibility comes from its reliance on Docker volumes feature not supported by Defang. To use a version that works with Defang, please refer to this sample instead.
6
8
7
9
## Prerequisites
8
10
@@ -12,8 +14,6 @@ This sample shows how to get a [n8n](https://n8n.io/) app up using PostgreSQL as
12
14
13
15
## Development
14
16
15
-
**IMPORTANT:** But before you do that change the default users and passwords in the [`.env`](.env) file!
16
-
17
17
To run the application locally for development, use the development compose file:
18
18
19
19
```bash
@@ -57,8 +57,8 @@ The POSTGRES_NON_ROOT_USER's password for your Postgres database, it will be use
57
57
58
58
The project includes two compose files:
59
59
60
-
-**`compose.dev.yaml`** - For local development with volume persistence and port exposure
61
-
-**`compose.yaml`** - For cloud deployment (extends `compose.dev.yaml`with cloud-specific optimizations)
60
+
-**`compose.dev.yaml`** - For local development with volume persistence
61
+
-**`compose.yaml`** - For cloud deployment with Defang
0 commit comments