https://github.com/egemenciftci/create-n8n-container-with-existing-data
https://github.com/egemenciftci/create-n8n-container-with-existing-data
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/egemenciftci/create-n8n-container-with-existing-data
- Owner: EgemenCiftci
- Created: 2025-02-16T15:45:15.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-02-16T15:55:02.000Z (8 months ago)
- Last Synced: 2025-02-16T16:41:10.705Z (8 months ago)
- Language: PowerShell
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Create n8n Container with Existing Data
This project contains scripts to create and run an `n8n` container with existing configuration and database files.
## Prerequisites
- Docker must be installed and running on your machine.
- PowerShell must be installed on your machine.## Scripts
### `create-volume.ps1`
This script creates a Docker volume and populates it with existing configuration and database files.
#### Parameters
- `volumeName` (string): The name of the Docker volume to create. Default is `n8n_data`.
- `containerName` (string): The name of the temporary container to create. Default is `temp-container`.
- `dataPath` (string): The path to the directory containing the configuration and database files. Default is `.\n8n_data`.#### Usage
```powershell
.\create-volume.ps1 -volumeName "n8n_data" -containerName "temp-container" -dataPath ".\n8n_data"
```### `run-container.ps1`
This script runs the n8n container with the specified volume and port mapping.
#### Parameters
- `containerName` (string): The name of the container to run. Default is `n8n`.
- `port` (int): The port to map to the container. Default is `5678`.
- `volumeName` (string): The name of the Docker volume to use. Default is `n8n_data`.#### Usage
```powershell
.\run_container.ps1 -containerName "n8n" -port 5678 -volumeName "n8n_data"
```