Created
April 28, 2020 12:38
-
-
Save asahasrabuddhe/efa606668b407fb8283effb24400cf89 to your computer and use it in GitHub Desktop.
traefik demo
This file contains 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
version: '3' | |
services: | |
user: | |
image: ajitemsahasrabuddhe/mirror:latest | |
ports: | |
- 9090:9090 | |
environment: | |
NAME: 'user-service' | |
labels: | |
- "traefik.http.routers.user.rule=Path(`/user`)" | |
product: | |
image: ajitemsahasrabuddhe/mirror:latest | |
ports: | |
- 9091:9090 | |
environment: | |
NAME: 'product-service' | |
labels: | |
- "traefik.http.routers.product.rule=Path(`/product`)" | |
reverse-proxy: | |
image: traefik:v2.2 | |
command: --api.insecure=true --providers.docker | |
ports: | |
- 80:80 | |
- 8080:8080 | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment