How to self host n8n on Azure container apps with persistent storage using Azure Blob Storage
Hey @david_cooper
Can’t really paste the whole solution here but here are the main points
-
Create a Resource Group
-
Create Azure Storage Account
-
Create a Blob Container
-
Generate a Shared Access Signature (SAS)
-
(Optional) Create Azure File Share (useful for mounting)
-
Create Azure Container App Environment
-
Deploy n8n to Azure Container Apps with Persistent Storage
az containerapp create
–name n8n-app
–resource-group n8n-rg
–environment n8n-env
–image n8nio/n8n
–target-port 5678
–ingress ‘external’
–transport ‘auto’
–env-vars
N8N_BASIC_AUTH_ACTIVE=true
N8N_BASIC_AUTH_USER=admin
N8N_BASIC_AUTH_PASSWORD=yourpassword
N8N_HOST=0.0.0.0
N8N_PORT=5678
N8N_LOG_LEVEL=info
N8N_PROTOCOL=http
N8N_PERSONALIZATION_ENABLED=false
–storage-mounts
mountPath=/home/node/.n8n
storageType=azureFile
azureFileAccountName=n8nstorageacct
azureFileShareName=n8nshare
azureFileAccountKey=[your-storage-account-key]
Thank you @mrrobot this was helpful.
I have got another problem now, every time I open n8n it is asking me to Set up owner account
Hey @david_cooper ,
I think you are missing a persistent storage ?