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
The sandbox uses a "Dependency Chain" to ensure services configure themselves in the correct order:
68
59
69
-
The sandbox includes "Run-Once" containers that handle the heavy lifting of environment setup:
60
+
1.**Postgres (`initdb`)**: Creates the initial schemas. **Note:** Ensure your `./initdb` folder contains a script to create the `keycloak` database, as Postgres only creates the one defined in `POSTGRES_DB` by default.
61
+
2.**Keycloak Provisioning**: The `keycloak-provision` service uses the Keycloak Admin CLI or API to create the `starter` realm and the OIDC client.
62
+
3.**n8n Provisioning**:
70
63
71
-
-**`keycloak-provision`**: Automatically configures the `starter` realm and OIDC clients after Keycloak starts.
72
-
-**`n8n-import`**:
73
-
- Checks if workflows exist; if not, imports credentials and workflows from `./n8n/demo-data`.
74
-
- Installs community nodes from `../community-nodes`.
75
-
76
-
-**`initdb`**: The Postgres service automatically executes scripts located in `./initdb` on first boot.
64
+
-**Idempotency**: Checks if workflows exist before importing to avoid duplicates.
65
+
-**Custom Nodes**: Injects community nodes into the `/home/node/.n8n/nodes` directory.
66
+
-**Hooks**: Runs `migrate.cjs` to set up external hooks (e.g., custom logging or auditing).
77
67
78
68
## 💾 Persistence & Volumes
79
69
80
-
Data is persisted across restarts using named Docker volumes:
81
-
82
-
-`n8n_storage`: Config, nodes, and local binary data.
83
-
-`postgres_storage`: All relational data (n8n & Keycloak tables).
84
-
-`qdrant_storage`: Vector collections and indexes.
Data is persisted across restarts using named Docker volumes. If you need to **wipe the environment**, run `docker-compose down -v`.
86
71
87
-
> **Note on AI Features:** Ollama is currently commented out in the `docker-compose.yaml`. To use local AI nodes in n8n, uncomment the `ollama` and `ollama-pull-llama` services.
72
+
-`n8n_storage`: Stores the `.n8n` folder, including SQLite (if used), binary data, and installed nodes.
73
+
-`postgres_storage`: Stores the physical database files for both n8n and Keycloak.
74
+
-`ollama_storage` / `qdrant_storage`: (Reserved) Stores downloaded AI models and vector embeddings.
0 commit comments