| 
									
										
										
										
											2024-01-07 13:33:56 +00:00
										 |  |  | version: '3.9'
 | 
					
						
							| 
									
										
										
										
											2023-12-14 04:15:22 +00:00
										 |  |  | services:
 | 
					
						
							|  |  |  |   lobe-chat:
 | 
					
						
							|  |  |  |     container_name: lobe-chat
 | 
					
						
							| 
									
										
										
										
											2024-04-29 06:04:10 +00:00
										 |  |  |     image: lobehub/lobe-chat:v0.151.1
 | 
					
						
							| 
									
										
										
										
											2023-12-14 04:15:22 +00:00
										 |  |  |     environment:
 | 
					
						
							|  |  |  |       - OPENAI_API_KEY=${OPENAI_API_KEY}
 | 
					
						
							|  |  |  |       - OPENAI_PROXY_URL=${OPEANAI_PROXY_URL}
 | 
					
						
							|  |  |  |       - CUSTOM_MODELS=${CUSTOM_MODELS}
 | 
					
						
							|  |  |  |       - ACCESS_CODE=${ACCESS_CODE}
 | 
					
						
							|  |  |  |     ports:
 | 
					
						
							|  |  |  |       - ${APP_PORT}:3210
 | 
					
						
							|  |  |  |     restart: unless-stopped
 | 
					
						
							|  |  |  |     networks:
 | 
					
						
							|  |  |  |       - tipi_main_network
 | 
					
						
							| 
									
										
										
										
											2024-01-06 03:10:03 +00:00
										 |  |  |     labels:
 | 
					
						
							|  |  |  |       # Main
 | 
					
						
							|  |  |  |       traefik.enable: true
 | 
					
						
							|  |  |  |       traefik.http.middlewares.lobe-chat-web-redirect.redirectscheme.scheme: https
 | 
					
						
							| 
									
										
										
										
											2024-01-07 13:33:56 +00:00
										 |  |  |       traefik.http.services.lobe-chat.loadbalancer.server.port: 3210
 | 
					
						
							| 
									
										
										
										
											2024-01-06 03:10:03 +00:00
										 |  |  |       # Web
 | 
					
						
							|  |  |  |       traefik.http.routers.lobe-chat-insecure.rule: Host(`${APP_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.lobe-chat-insecure.entrypoints: web
 | 
					
						
							|  |  |  |       traefik.http.routers.lobe-chat-insecure.service: lobe-chat
 | 
					
						
							|  |  |  |       traefik.http.routers.lobe-chat-insecure.middlewares: lobe-chat-web-redirect
 | 
					
						
							|  |  |  |       # Websecure
 | 
					
						
							|  |  |  |       traefik.http.routers.lobe-chat.rule: Host(`${APP_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.lobe-chat.entrypoints: websecure
 | 
					
						
							|  |  |  |       traefik.http.routers.lobe-chat.service: lobe-chat
 | 
					
						
							|  |  |  |       traefik.http.routers.lobe-chat.tls.certresolver: myresolver
 | 
					
						
							|  |  |  |       # Local domain
 | 
					
						
							|  |  |  |       traefik.http.routers.lobe-chat-local-insecure.rule: Host(`lobe-chat.${LOCAL_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.lobe-chat-local-insecure.entrypoints: web
 | 
					
						
							|  |  |  |       traefik.http.routers.lobe-chat-local-insecure.service: lobe-chat
 | 
					
						
							|  |  |  |       traefik.http.routers.lobe-chat-local-insecure.middlewares: lobe-chat-web-redirect
 | 
					
						
							|  |  |  |       # Local domain secure
 | 
					
						
							|  |  |  |       traefik.http.routers.lobe-chat-local.rule: Host(`lobe-chat.${LOCAL_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.lobe-chat-local.entrypoints: websecure
 | 
					
						
							|  |  |  |       traefik.http.routers.lobe-chat-local.service: lobe-chat
 | 
					
						
							|  |  |  |       traefik.http.routers.lobe-chat-local.tls: true
 |