Created
August 24, 2022 03:22
-
-
Save zaverden/f713deff4326620b6228e06681eab68a to your computer and use it in GitHub Desktop.
replicated application behind traefik proxy
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
services: | |
proxy: | |
image: traefik:v2.8 | |
ports: | |
- 18880:80 | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock:ro | |
command: | |
- --providers.docker | |
- --entryPoints.web80.address=:80 | |
app: | |
image: my-applicaltion | |
restart: always | |
deploy: | |
replicas: 3 | |
mode: replicated | |
labels: | |
- traefik.http.routers.who.rule=PathPrefix(`/`) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment