-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
29 lines (27 loc) · 1.05 KB
/
docker-compose.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
25
26
27
28
29
version: "3.6"
services:
web:
image: "ghcr.io/<user>/<repo>:latest"
deploy:
replicas: 1
update_config:
delay: 10s
failure_action: rollback
order: start-first
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy"
- "traefik.http.routers.<your_traefik_service_name>.entrypoints=https"
- "traefik.http.routers.<your_traefik_service_name>.rule=Host(`yourdomain.com`)"
- "traefik.http.routers.<your_traefik_service_name>.tls=true"
- "traefik.http.routers.<your_traefik_service_name>.tls.certresolver=cf"
- "traefik.http.services.<your_traefik_service_name>.loadbalancer.server.port=80"
- "traefik.http.services.<your_traefik_service_name>.loadbalancer.server.scheme=http"
- "traefik.http.middlewares.ratelimit.ratelimit.average=100"
- "traefik.http.middlewares.ratelimit.ratelimit.burst=50"
- "traefik.http.routers.<your_traefik_service_name>.middlewares=ratelimit"
networks:
- proxy
networks:
proxy:
external: true