-
-
Notifications
You must be signed in to change notification settings - Fork 108
/
Copy pathcats.yml
24 lines (23 loc) · 762 Bytes
/
cats.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
version: '3.7'
services:
cat-app:
image: mikesir87/cats
networks:
- inbound
deploy:
mode: replicated
replicas: 3
update_config:
parallelism: 1
delay: 10s
labels:
- "traefik.http.routers.cat-app.rule=Host(`cats.localhost`)"
- "traefik.http.routers.cat-app.service=cat-app"
- "traefik.http.services.cat-app.loadbalancer.server.port=5000"
- "traefik.docker.network=inbound"
# Remove the line below to enable rate limiting. This will only allow avergae 1 request per second before erroring.
# - "traefik.http.routers.cat-app.middlewares=cat-app@docker"
# - "traefik.http.middlewares.cat-app.ratelimit.average=1"
networks:
inbound:
external: true