Compare commits
	
		
			2 Commits
		
	
	
		
			eab930b1f2
			...
			8ee13fd2e1
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 8ee13fd2e1 | |||
| 9add5b2f82 | 
@ -1,5 +1,5 @@
 | 
			
		||||
--- 
 | 
			
		||||
# TIP: Why isn't Traefik routing correctly? Don't peek at challenge 7! Try checking the Traefik dashboard on localhost:8080
 | 
			
		||||
# TIP: Why isn't Traefik routing correctly? Don't peek at challenge 7! Try checking the Traefik dashboard on http://localhost:8080/dashboard/
 | 
			
		||||
 | 
			
		||||
services:
 | 
			
		||||
  app:
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										33
									
								
								9/docker-compose.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								9/docker-compose.yml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,33 @@
 | 
			
		||||
--- 
 | 
			
		||||
# TIP: Why isn't Traefik routing correctly? Don't peek at challenge 7 or 8! Try checking the Traefik dashboard on http://localhost:8080/dashboard/
 | 
			
		||||
 | 
			
		||||
services:
 | 
			
		||||
  app:
 | 
			
		||||
    image: git.autonomic.zone/autonomic-cooperative/docker-debugging-disco:0.1.0
 | 
			
		||||
    environment:
 | 
			
		||||
      - CHALLENGE=7
 | 
			
		||||
    labels:
 | 
			
		||||
      - "traefik.enable=true"
 | 
			
		||||
      - "traefik.docker.network=proxy"
 | 
			
		||||
      - "traefik.http.services.challenge-7.loadbalancer.server.port=80"
 | 
			
		||||
      - "traefik.http.routers.challenge-7.rule=Host(`localhost`)"
 | 
			
		||||
 | 
			
		||||
  proxy:
 | 
			
		||||
    image: traefik
 | 
			
		||||
    volumes:
 | 
			
		||||
      - /var/run/docker.sock:/var/run/docker.sock:ro
 | 
			
		||||
    networks:
 | 
			
		||||
      proxy:
 | 
			
		||||
    configs:
 | 
			
		||||
      - source: traefik_yml
 | 
			
		||||
        target: /traefik.yml
 | 
			
		||||
    ports:
 | 
			
		||||
      - 8000:80
 | 
			
		||||
      - 8080:8080
 | 
			
		||||
 | 
			
		||||
networks:
 | 
			
		||||
  proxy:
 | 
			
		||||
 | 
			
		||||
configs:
 | 
			
		||||
  traefik_yml:
 | 
			
		||||
    file: traefik.yml
 | 
			
		||||
							
								
								
									
										14
									
								
								9/traefik.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								9/traefik.yml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,14 @@
 | 
			
		||||
api:
 | 
			
		||||
  dashboard: true
 | 
			
		||||
  insecure: true
 | 
			
		||||
  debug: true
 | 
			
		||||
entryPoints:
 | 
			
		||||
  web:
 | 
			
		||||
    address: ":80"
 | 
			
		||||
serversTransport:
 | 
			
		||||
  insecureSkipVerify: true
 | 
			
		||||
providers:
 | 
			
		||||
  docker:
 | 
			
		||||
    endpoint: "unix:///var/run/docker.sock"
 | 
			
		||||
    # exposedByDefault: false
 | 
			
		||||
    network: proxy # Optional; Only use the "proxy" Docker network, even if containers are on multiple networks.
 | 
			
		||||
		Reference in New Issue
	
	Block a user