-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
37 lines (34 loc) · 1.48 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
30
31
32
33
34
35
36
37
version: '3.3'
services:
traefikshaper:
image: l4rm4nd/traefikshaper:latest
container_name: traefikshaper
restart: unless-stopped
environment:
- APPURL=http://localhost:5000 # please change; e.g. https://traefikshaper.example.com
- GRANT_HTTP_ENDPOINT=/knock-knock # the endpoint for clients to request access
- DEFAULT_PRIVATE_CLASS_SOURCE_RANGE=True # add private class subnets to the IPAllowList per default
- IPSTRATEGY_DEPTH=0 # the depth ip strategy used in the IPAllowList middleware; use 1 if traefik runs behind another proxy (e.g. CloudFlare)
- EXPIRATION_TIME=300 # expiration time in seconds; or how long access is granted
- APPRISE_NOTIFICATION_URL=tgram://bottoken/ChatID # add your preferred apprise url; see https://github.com/caronc/apprise
expose:
- 5000/tcp
ports:
- 5000:5000/tcp
volumes:
- ./dynamic-whitelist.yml:/app/dynamic-whitelist.yml
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
networks:
- proxy
labels:
- traefik.enable=true
- traefik.docker.network=proxy
- traefik.http.routers.traefikshaper.rule=Host(`traefikshaper.example.com`)
- traefik.http.routers.traefikshaper.service=traefikshaper
- traefik.http.services.traefikshaper.loadbalancer.server.port=5000
# Optional part for traefik middlewares
#- traefik.http.routers.traefikshaper.middlewares=local-ipwhitelist@file
networks:
proxy:
external: true