fix: update HOSTNAME environment variable and custom request header for betterbahn service
This commit is contained in:
		
							parent
							
								
									ff17803f97
								
							
						
					
					
						commit
						1d4eb72164
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -5,7 +5,7 @@ services:
 | 
			
		|||
    networks:
 | 
			
		||||
      - dokploy-network
 | 
			
		||||
    environment:
 | 
			
		||||
      - HOSTNAME=0.0.0.0
 | 
			
		||||
      - HOSTNAME=betterbahn
 | 
			
		||||
    labels:
 | 
			
		||||
      - "traefik.enable=true"
 | 
			
		||||
      - "traefik.docker.network=dokploy-network"
 | 
			
		||||
| 
						 | 
				
			
			@ -21,7 +21,7 @@ services:
 | 
			
		|||
      - "traefik.http.routers.betterbahn-app-websecure.tls=true"
 | 
			
		||||
      - "traefik.http.routers.betterbahn-app-websecure.tls.certresolver=hetzner"
 | 
			
		||||
      - "traefik.http.routers.betterbahn-app-websecure.tls.domains[0].main=${TLS_DOMAIN}"
 | 
			
		||||
      - "traefik.http.middlewares.betterbahn-app-hostheader.headers.customrequestheaders.Host=localhost"
 | 
			
		||||
      - "traefik.http.middlewares.betterbahn-app-hostheader.headers.customrequestheaders.Host=betterbahn"
 | 
			
		||||
      - "traefik.http.routers.betterbahn-app-websecure.middlewares=secHeaders@file, autodetectContenttype@file, authentikProd@file, betterbahn-app-hostheader"
 | 
			
		||||
  # whoami:
 | 
			
		||||
  #   image: traefik/whoami
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue