app-store/apps/n8n/docker-compose.yml
Nicholas Vrana 386a6e5dee
Update tipi version and added URL environment variable (#578)
* Update tipi version and add URL to enable OAUTH callback functionality

Updated to the latest version and added an environment variable for the domain which is necessary when setting up integrations that have OAUTH callbacks, otherwise it submits the callback URL as "localhost."

* Update n8n description.md

added a note to inform user about integration limitations without a URL

* Update description.md

edited for clarity

* Add Changelog

---------

Co-authored-by: DrMxrcy <drmxrcy@gmail.com>
2023-05-23 13:41:39 -04:00

45 lines
1.2 KiB
YAML

version: '3.7'
services:
n8n:
container_name: n8n
image: n8nio/n8n:0.229.0
restart: unless-stopped
ports:
- ${APP_PORT}:5678
volumes:
- ${APP_DATA_DIR}/data/n8n:/home/node/.n8n
command: /bin/sh -c "sleep 5; n8n start"
environment:
- DB-TYPE=postgresdb
- DB_POSTGRESDB_DATABASE=n8n
- DB_POSTGRESDB_HOST=db-n8n
- DB_POSTGRESDB_PORT=5432
- DB_POSTGRESDB_USER=tipi
- DB_POSTGRESDB_PASSWORD=tipi
- N8N_EDITOR_BASE_URL=${APP_DOMAIN}
depends_on:
- db-n8n
networks:
- tipi_main_network
labels:
traefik.enable: ${APP_EXPOSED}
traefik.http.routers.n8n.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.n8n.entrypoints: websecure
traefik.http.routers.n8n.service: n8n
traefik.http.routers.n8n.tls.certresolver: myresolver
traefik.http.services.n8n.loadbalancer.server.port: 5678
db-n8n:
container_name: db-n8n
image: postgres:14.2
restart: on-failure
volumes:
- ${APP_DATA_DIR}/data/db:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_USER=tipi
- POSTGRES_DB=n8n
networks:
- tipi_main_network