Created
          April 10, 2020 06:14 
        
      - 
      
- 
        Save kgrvamsi/16ab5656c3941b9c4e765cdbdf1af5ab to your computer and use it in GitHub Desktop. 
    Traefik, Docker-Compose, Nginx routing example -- port 80 http only, for now
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | traefik: | |
| image: traefik | |
| command: --web --docker --docker.watch --docker.domain=localhost --logLevel=DEBUG --entryPoints="Name:http Address::80" | |
| ports: | |
| - "80:80" | |
| - "8080:8080" | |
| volumes: | |
| - /var/run/docker.sock:/var/run/docker.sock | |
| - /dev/null:/traefik.toml | |
| nginx1: | |
| image: nginx | |
| labels: | |
| - "traefik.backend=nginx1" | |
| - "traefik.frontend.rule=PathStrip: /nginx1" | |
| - "traefik.port=80" | |
| - "traefix.port=443" | |
| - "traefik.frontend.entryPoints=http" | |
| nginx2: | |
| image: nginx | |
| labels: | |
| - "traefik.backend=nginx2" | |
| - "traefik.frontend.rule=PathStrip: /nginx2" | |
| - "traefik.port=80" | |
| - "traefix.port=443" | |
| - "traefik.frontend.entryPoints=http" | |
| nginx3: | |
| image: nginx | |
| labels: | |
| - "traefik.backend=nginx3" | |
| - "traefik.frontend.rule=PathStrip: /nginx3" | |
| - "traefik.port=80" | |
| - "traefix.port=443" | |
| - "traefik.frontend.entryPoints=http" | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment