| 
									
										
										
										
											2023-12-10 18:30:50 +00:00
										 |  |  | version: '3.7'
 | 
					
						
							| 
									
										
										
										
											2022-07-28 17:46:12 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | services:
 | 
					
						
							|  |  |  |   n8n:
 | 
					
						
							|  |  |  |     container_name: n8n
 | 
					
						
							| 
									
										
										
										
											2023-08-17 20:00:33 +00:00
										 |  |  |     image: n8nio/n8n:0.237.0
 | 
					
						
							| 
									
										
										
										
											2022-07-28 17:46:12 +00:00
										 |  |  |     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:
 | 
					
						
							| 
									
										
										
										
											2023-12-10 18:30:50 +00:00
										 |  |  |       - N8N_EDITOR_BASE_URL=${APP_PROTOCOL:-http}://${APP_DOMAIN}
 | 
					
						
							| 
									
										
										
										
											2022-07-28 17:46:12 +00:00
										 |  |  |     networks:
 | 
					
						
							|  |  |  |       - tipi_main_network
 | 
					
						
							| 
									
										
										
										
											2022-11-11 19:33:58 +00:00
										 |  |  |     labels:
 | 
					
						
							| 
									
										
										
										
											2023-06-12 19:58:59 +00:00
										 |  |  |       # 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
 | 
					
						
							| 
									
										
										
										
											2022-11-11 19:33:58 +00:00
										 |  |  |       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
 | 
					
						
							| 
									
										
										
										
											2023-06-12 19:58:59 +00:00
										 |  |  |       # 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
 |