Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions compose/n8n-init-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ if [ -n "${POSTGRES_NON_ROOT_USER:-}" ] && [ -n "${POSTGRES_NON_ROOT_PASSWORD:-}
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
CREATE USER ${POSTGRES_NON_ROOT_USER} WITH PASSWORD '${POSTGRES_NON_ROOT_PASSWORD}';
GRANT ALL PRIVILEGES ON DATABASE ${POSTGRES_DB} TO ${POSTGRES_NON_ROOT_USER};
GRANT CREATE ON SCHEMA public TO ${POSTGRES_NON_ROOT_USER};
EOSQL
else
echo "SETUP INFO: No Environment variables given!"
Expand Down
5 changes: 2 additions & 3 deletions compose/n8n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
- ${N8N_PORT:-6231}:${N8N_PORT:-6231}

n8n-postgres:
image: ${N8N_POSTGRES_IMAGE:-postgres:11}
image: ${N8N_POSTGRES_IMAGE:-postgres:16}
Comment thread
simonhammes marked this conversation as resolved.
restart: unless-stopped
container_name: n8n-postgres
environment:
Expand All @@ -30,7 +30,7 @@ services:
- backend-n8n-net

n8n:
image: ${N8N_IMAGE:-docker.n8n.io/n8nio/n8n:2.12.3}
image: ${N8N_IMAGE:-docker.n8n.io/n8nio/n8n:2.20.9}
restart: unless-stopped
container_name: n8n
environment:
Expand All @@ -49,7 +49,6 @@ services:
- DB_POSTGRESDB_PASSWORD=${POSTGRES_NON_ROOT_PASSWORD}
- N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
- N8N_BLOCK_ENV_ACCESS_IN_NODE=true
- N8N_RUNNERS_ENABLED=true
- N8N_TRUST_PROXY=true
- N8N_PROXY_HOPS=1
volumes:
Expand Down