1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/n8n/docker-compose.yml

40 lines
937 B
YAML
Raw Normal View History

2020-10-28 11:20:54 +02:00
version: "3.8"
2021-07-07 08:46:12 +02:00
2020-10-28 11:20:54 +02:00
services:
2021-07-07 08:46:12 +02:00
2020-10-28 11:20:54 +02:00
n8n:
2024-05-22 09:16:18 +02:00
image: n8nio/n8n:1.42.1
2020-10-28 11:20:54 +02:00
ports:
- "5678:5678"
volumes:
2021-07-07 08:46:12 +02:00
- ./data:/home/node/.n8n
environment:
- DB_TYPE=postgresdb
- DB_POSTGRESDB_HOST=postgres
- DB_POSTGRESDB_PORT=5432
- DB_POSTGRESDB_DATABASE=n8n
- DB_POSTGRESDB_USER=n8n
- DB_POSTGRESDB_PASSWORD=n8n
2024-05-22 09:16:18 +02:00
- DB_POSTGRESDB_SCHEMA=public
2021-07-07 08:46:12 +02:00
- N8N_BASIC_AUTH_ACTIVE=true
- N8N_BASIC_AUTH_USER=username
- N8N_BASIC_AUTH_PASSWORD=password
2024-05-22 09:16:18 +02:00
- WEBHOOK_URL=https://n8n.easypi.duckdns.org/
- GENERIC_TIMEZONE=Asia/Shanghai
- TZ=Asia/Shanghai
2021-07-07 08:46:12 +02:00
depends_on:
- postgres
restart: unless-stopped
postgres:
2024-05-22 09:16:18 +02:00
image: postgres:16-alpine
2021-07-07 08:46:12 +02:00
ports:
- "5432:5432"
volumes:
- ./data/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_USER=n8n
- POSTGRES_PASSWORD=n8n
- POSTGRES_DB=n8n
2020-10-28 11:20:54 +02:00
restart: unless-stopped