🐛 Fix n8n permissions on data volume

This commit is contained in:
Anarion 2023-11-26 13:37:20 +01:00
parent 9708c934f1
commit 6a285d7b99
No known key found for this signature in database
GPG key ID: 6C9E149718A7D4EB
3 changed files with 14 additions and 1 deletions

View file

@ -15,7 +15,7 @@ n8n_basic_auth_password: "n8n_change_me"
# docker
n8n_container_name: "n8n"
n8n_image_name: "n8nio/n8n"
n8n_image_name: "docker.n8n.io/n8nio/n8n"
n8n_image_version: "latest"
# specs

View file

@ -1,6 +1,17 @@
---
platforms:
- name: instance
image: geerlingguy/docker-ubuntu2204-ansible:latest
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /var/run/docker.sock:/var/run/docker.sock
- /tmp:/tmp:rw
privileged: true
pre_build_image: true
provisioner:
inventory:
group_vars:
all:
n8n_enabled: true
n8n_data_directory: "/tmp/n8n"

View file

@ -5,6 +5,8 @@
ansible.builtin.file:
path: "{{ item }}"
state: directory
owner: 1000
group: 1000
with_items:
- "{{ n8n_data_directory }}"