proxy n8n through traefik
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
services:
|
||||
n8n:
|
||||
image: n8nio/n8n:latest
|
||||
ports:
|
||||
- 5678:5678
|
||||
networks:
|
||||
- homelab
|
||||
environment:
|
||||
@@ -16,7 +14,7 @@ services:
|
||||
- /home/doc/projects/swarm-data/appdata/n8n:/home/node/.n8n
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:5678/healthz"]
|
||||
test: [ "CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:5678/healthz" ]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
@@ -32,7 +30,15 @@ services:
|
||||
memory: 2G
|
||||
reservations:
|
||||
memory: 512M
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.swarm.network=homelab"
|
||||
- "traefik.http.routers.n8n.rule=Host(`n8n.frostlabs.me`)"
|
||||
- "traefik.http.routers.n8n.entrypoints=websecure"
|
||||
- "traefik.http.routers.n8n.tls.certresolver=cloudflare"
|
||||
- "traefik.http.routers.n8n.service=n8n"
|
||||
- "traefik.http.services.n8n.loadbalancer.server.port=5678"
|
||||
|
||||
networks:
|
||||
homelab:
|
||||
external: true
|
||||
external: true
|
||||
|
||||
Reference in New Issue
Block a user