Skip to content

Instantly share code, notes, and snippets.

@zaverden
Created August 24, 2022 03:22
Show Gist options
  • Save zaverden/f713deff4326620b6228e06681eab68a to your computer and use it in GitHub Desktop.
Save zaverden/f713deff4326620b6228e06681eab68a to your computer and use it in GitHub Desktop.
replicated application behind traefik proxy
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