45 lines
1.4 KiB
YAML
45 lines
1.4 KiB
YAML
services:
|
|
n8n:
|
|
image: docker.n8n.io/n8nio/n8n
|
|
container_name: n8n
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
- data:/home/node/.n8n
|
|
- files:/files
|
|
networks:
|
|
- proxy
|
|
- n8n
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.docker.network=proxy"
|
|
- "traefik.http.services.n8n.loadbalancer.server.port=5678"
|
|
|
|
# Prod Router
|
|
- "traefik.http.routers.n8n.rule=Host(`n8n.forust.xyz`)"
|
|
- "traefik.http.routers.n8n.entrypoints=websecure"
|
|
- "traefik.http.routers.n8n.middlewares=security-chain@file"
|
|
- "traefik.http.routers.n8n.tls=true"
|
|
# Local Router
|
|
- "traefik.http.routers.n8n-local.rule=Host(`n8n.workstation.internal`)"
|
|
- "traefik.http.routers.n8n-local.entrypoints=websecure"
|
|
- "traefik.http.routers.n8n-local.tls=true"
|
|
# Dev Router
|
|
- "traefik.http.routers.n8n-dev.rule=Host(`n8n.gigaforust.internal`)"
|
|
- "traefik.http.routers.n8n-dev.entrypoints=websecure"
|
|
- "traefik.http.routers.n8n-dev.tls=true"
|
|
|
|
- glance.name=n8n
|
|
- glance.icon=si:n8n
|
|
- glance.url=https://n8n.forust.xyz/
|
|
- glance.description=n8n is a workflow automation tool that enables you to connect various apps and services to automate tasks and processes.
|
|
volumes:
|
|
data:
|
|
files:
|
|
networks:
|
|
n8n:
|
|
external: false
|
|
proxy:
|
|
external: true
|