49e9316685
* feat(jackett): change config to support local domain * feat(matrix-conduit): change config to support local domain * feat(mealie): change config to support local domain * feat(memos): change config to support local domain * feat(mind): change config to support local domain * feat(minecraft-server): change config to support local domain * feat(mixpost): change config to support local domain * feat(mixpost-pro): change config to support local domain * feat(moneroblock): change config to support local domain * feat(monerod): change config to support local domain * feat(monica): change config to support local domain * feat(movary): change config to support local domain * feat(mstream): change config to support local domain * feat(mylar3): change config to support local domain * feat(n8n): change config to support local domain * feat(navidrome): change config to support local domain * feat(nitter): change config to support local domain * feat(nocodb): change config to support local domain * feat(nodered): change config to support local domain * feat(onedev): change config to support local domain * feat(openbooks): change config to support local domain * feat(overseerr): change config to support local domain * feat(owncloud): change config to support local domain
63 lines
2.1 KiB
YAML
63 lines
2.1 KiB
YAML
version: "3.7"
|
|
|
|
services:
|
|
n8n:
|
|
container_name: n8n
|
|
image: n8nio/n8n:0.232.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:
|
|
# Main
|
|
traefik.enable: true
|
|
traefik.http.middlewares.n8n-web-redirect.redirectscheme.scheme: https
|
|
traefik.http.services.n8n.loadbalancer.server.port: 5678
|
|
# Web
|
|
traefik.http.routers.n8n-insecure.rule: Host(`${APP_DOMAIN}`)
|
|
traefik.http.routers.n8n-insecure.entrypoints: web
|
|
traefik.http.routers.n8n-insecure.service: n8n
|
|
traefik.http.routers.n8n-insecure.middlewares: n8n-web-redirect
|
|
# Websecure
|
|
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
|
|
# Local domain
|
|
traefik.http.routers.n8n-local-insecure.rule: Host(`n8n.${LOCAL_DOMAIN}`)
|
|
traefik.http.routers.n8n-local-insecure.entrypoints: web
|
|
traefik.http.routers.n8n-local-insecure.service: n8n
|
|
traefik.http.routers.n8n-local-insecure.middlewares: n8n-web-redirect
|
|
# Local domain secure
|
|
traefik.http.routers.n8n-local.rule: Host(`n8n.${LOCAL_DOMAIN}`)
|
|
traefik.http.routers.n8n-local.entrypoints: websecure
|
|
traefik.http.routers.n8n-local.service: n8n
|
|
traefik.http.routers.n8n-local.tls: true
|
|
|
|
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
|