2024-02-20 14:42:30 +00:00
|
|
|
# documentation: https://n8n.io
|
|
|
|
# slogan: n8n is an extendable workflow automation tool.
|
2023-10-25 08:43:07 +00:00
|
|
|
# tags: n8n,workflow,automation,open,source,low,code
|
2024-02-20 14:42:30 +00:00
|
|
|
# logo: svgs/n8n.png
|
2024-03-12 19:03:11 +00:00
|
|
|
# port: 5678
|
2023-10-25 08:43:07 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
n8n:
|
|
|
|
image: docker.n8n.io/n8nio/n8n
|
|
|
|
environment:
|
2024-03-12 19:03:11 +00:00
|
|
|
- SERVICE_FQDN_N8N_5678
|
2023-10-25 08:43:07 +00:00
|
|
|
- N8N_EDITOR_BASE_URL=${SERVICE_FQDN_N8N}
|
2023-11-07 11:50:18 +00:00
|
|
|
- WEBHOOK_URL=${SERVICE_FQDN_N8N}
|
|
|
|
- N8N_HOST=${SERVICE_URL_N8N}
|
2023-10-25 08:43:07 +00:00
|
|
|
- GENERIC_TIMEZONE="Europe/Berlin"
|
|
|
|
- TZ="Europe/Berlin"
|
|
|
|
- DB_TYPE=postgresdb
|
2023-11-07 11:30:37 +00:00
|
|
|
- DB_POSTGRESDB_DATABASE=${POSTGRES_DB:-n8n}
|
2023-10-25 08:43:07 +00:00
|
|
|
- DB_POSTGRESDB_HOST=postgresql
|
|
|
|
- DB_POSTGRESDB_PORT=5432
|
|
|
|
- DB_POSTGRESDB_USER=$SERVICE_USER_POSTGRES
|
|
|
|
- DB_POSTGRESDB_SCHEMA=public
|
|
|
|
- DB_POSTGRESDB_PASSWORD=$SERVICE_PASSWORD_POSTGRES
|
|
|
|
volumes:
|
|
|
|
- n8n-data:/home/node/.n8n
|
|
|
|
depends_on:
|
|
|
|
- postgresql
|
|
|
|
postgresql:
|
2023-11-30 11:21:21 +00:00
|
|
|
image: postgres:16-alpine
|
2023-10-25 08:43:07 +00:00
|
|
|
volumes:
|
|
|
|
- postgresql-data:/var/lib/postgresql/data
|
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=$SERVICE_USER_POSTGRES
|
|
|
|
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
|
2023-11-07 11:30:37 +00:00
|
|
|
- POSTGRES_DB=${POSTGRES_DB:-n8n}
|
2023-10-25 08:43:07 +00:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
|
|
|
|
interval: 5s
|
2023-10-26 08:02:51 +00:00
|
|
|
timeout: 20s
|
2023-10-25 08:43:07 +00:00
|
|
|
retries: 10
|
|
|
|
|